Cheating is a bit of a stretch, but it is not to fair to play your NPC's as having full knowledge of your PC's just because they are intelligent. Knowing someones spell list and having the counter ready, without any story reason for knowing, is harsh.
With spell resistance, good saves lots...