The best we can, or should, do might just be "restrict actions but let people talk".
Let people talk about killing minorities but make it illegal to act on it.
Otherwise, you start imposing this whole fear-based command set of "you should never say certain things because I've decided in this moment that there's never a legitimate reason to ever say them and it might lead to action which we want to optimize out from even becoming a possibility because the Fourth Reich will rise irresistibly at any moment".
It's a deeply depressing outlook to have about your fellow man, and that itself will drive bad outcomes. "You think making edgy jokes is not legitimate and that I'm about to slide down a slippery slope of fascism? Well, now maybe I will, or at least pretend to, if only to troll humorless Orwellian cunts like you."
I.e., something like the https://psychology-spot.com/rebound-effect-in-psychology/