Personally, I disagree with your approach to dealing with a toxic community. Having done moderation in various forums/chat rooms & now open source for almost 12 years, that's usually an approach that encourages poor behavior through insufficient action. As to a solution, I don't know what would be the best way to prevent it, but I'm not so naive to suggest there is an easy one-sided path to avoid it.