GM: "There are two guards by the door"
Player: "I cast detect magic on them."
GM: "You see they have some enchantment."
Player: "Okay, my character casts the dispel magic and then the spell fear on them"
GM: ??