Avoidance, deterence and defense. In that order
He avoided a confrontation until he couldn't. He used deterrence when he couldn't. Fortunately he didn't have to escalate to defense and everyone got to go home that day. That's an excellent outcome.
Your bravado will get you in big trouble someday.
Experience is a very bad teacher because it first gives you the test and then teaches you the lesson.