If you can survive 2-3 hits from a mob, the best way is to walk w/ stoneskin, protect, shockspikes, and defender (rampart also helps) up. If you know you are going to get aggro, get as close to the mob as possible as fast as you can, take the first hit, then run. This will allow it to get stunned, at which point you can run away and get out of range before stun wears. Otherwise, if you are far enough away, you will only get hit once by their ranged attack before you are out of range, and can continue.
Wolves and raptors are the worst since, their movement speed is faster then you run. So if you can't get the stun attack off, they will hit you 3-5 times before you get out of range (with their ranged attack).
The recent update now has most mobs only doing one ranged attack before running up to melee, but not always.