You could explain to him that this is about mismatched expectations on the part of the teacher, how when an authority figure resorts to discipline, the primary reaction they're looking for is some sort of humble contrition, and anything else suggests they're doing it wrong, and need to find another button to push (or, in the case of the teacher, react with powerless anger)...

... but if you do, you've also just given him a tool to use against YOU.

I'm pretty sure most kids figure this out by their early teens anyway.