The AI tries to get the first hit in tactical combat. So it won't just run blindly towards you but rather go slow until it has enough to hit you during its turn.
The AI, at least with intelligent monsters, should be smarter over how it does that, and understand if it is likely to get picked up to death by bows/magic.
Unintelligent monsters should be predictable or have set rules for behavior.