One thing many players do bad when against Akali is a simple mind issue, they are so...."it's Akali, fuck it, I'm going full T1" type of thing, and even if not fully going like that, they don't treat her like any other champion mental wise, and stop focusing on core aspects of the game, such as freezing, proper trading, tethering, lane management.
The way I beat the Akali's I face (and yes, I almost defeated a D2 Akali main if not for my Rengar. I died to her as 1st blood because of a risky play ruined by a minion who just changed pathing out of nowhere and blocked my skillshot so she got me instead of the other way, but oh well, killed her right after, then Rengar fed her 3 kills by tower diving her and it was too much for me). What I do against her (and I play both melee and ranged) is simply assess how I can kill her if her W isn't active and how much of my kit I actually need to do so, the main reason for that is that I want to bait her W, force her to use it, then beat her when it's down, but I also need to be able to actually kill her, so I need to gauge what I have to use to truly force her to use it and if I need that skill in my combo, and if I do, how much time I have to put everything in motion.
For example, I play Irelia, I need my E to kill her, if I hit E on her, she'll be forced to W or I simply deal too much damage to her, so if I leave a minion behind that's low enough for me to dash out (or not even low enough, just to facility a quick get out), I will have around a 3-5 seconds window where I can trade with her freely as her W will still be on CD (based on how quick she is to cast it after she's stunned), and then to decide if I want that to be an all in or just a high trade that she forces her out.
Obviously I can't give examples for every single champ, as I'm the type of player that play just a few champions, but hopefully that explanation will help you understand my mentality of winning lanes against her.