Play defensively and accept that you fall behind in CS early on, just make sure you get the xp.
Pick up solid sustain, Fleetfoodwork is a great rune on those champs vs ranged, the sustain is huge and the ms helps to get back out of range after hitting a minion and also helps in trades. Going for inspiration second and picking up biscuits and the longer pot duration can help aswell.
For starting items, flask usually is you're friend, longsword+pots also is fine on ADs.
Play around your powerspikes and around enemie CDs. Talon and ekko for example have strong lvl 2s. If they hit both parts of thier Q(W for talon), you're opponent needs to stay out of your gapcloseing range or you can chunk them really hard thx to their passives, which gives you a window to pick up CS while zoneing them.
Ranged champs have nasty harras, but you usually have the upper hand in an all-in, use that to your advantage.
Also, most mages rely on some skillshots, and most asassins have mobillity, so try to hold onto your mobillity till they use that skillshot and dodge it agressively(aka dodge while closeing the gap). For talon, it's important to keep in mind that his Q has a partial reset on lasthit, so try to use it on a low hp minion to dodge stuff so you can use it soon again for the counterattack while you're opponent still has CDs.
But mostly, especially if you're not that experienced on them, try to just soak xp and scrap as much cs as you can while staying save till lvl 6, past that you will have alot all-in kill potential(or alot more savety in case of ekko)
Also, getting more waveclear can help alot. Even though it's not that common, i really like rushing luden's ecco on ekko, allows you to basically spam that Q and clear waves from a save distance, allowing you to roam.
On Talon, you want to rush Tiamat, it's active if used right gives you probably even more burst than any other item at that point, and it allows you to clear waves quickly so you spent as little time as possible in range for harras befor you can either roam or retreat.
If you're new to those champs, it's really though, but once you get a feel for when you can trade back, it gets a lot easier. Their main tool at dealing with poke is threatening with strong all ins so the opponent has to think tice if he wants to get in range. However, it's important to keep an eye on the enemie jungle, if you go for a trade as melee, you open your self up for ganks by useing you escape tool agressively.