The easiest way is to not equip them with the weapon they are not supposed to wear and to not use the magic they are not supposed to use. OK?

Its the principle of it all.