uh... so? two examples of things people do to vile people.
to be clear: if someone shouts nazi stuff around me and I'm driven to anger enough to punch them (which, to be clear, has never happened, but hypothetically), I obviously accept the legal consequences of that. the whole point here is that legal rules abut what you should do are not ethical ones. Ethically, don't shout nazi stuff, and also ethically if you do shout nazi stuff you might get punched and you deserve it.