At least in the US you can't enforce it - and yes, any lunatic can grab a megaphone if they want.
The best way to handle problematic speech is more speech, NOT less. Trying to pretend lunatics don't exist is irrational and often a pretext to just block people that others disagree with. Screw that. Safest place for lunatics is out in the open, not driven underground.