Easy to prevent. Nutters (to use the politically correct term :-P) don't escalate to acts like that in just one moment. Usually they have a long history of similar acts, slowly getting worse. You should lock them up in the rubber room long before they get that nasty.