Something like this is only a result of poor starting macro (on part of whoever is about to get spearton'd). However, there are soem good suggestions here, just not enough clarity on how to use them.
Yes, magikill are good on units in bunches. But it has a serious problem: If they have that many units, they can simple kill the magikill, and move on to whatever else. So you have to think a bit defensively, use walls, etc. Next is your own speartons, but against a smart player, if he has a starting macro advantage, by golly, he's gonna keep that. Meaning it's futile in the long run. So you have to mix it up. And that's where my crazy self supports use of flying crossbow men. I think it's quite intuitive for this problem.