'Sounds like you did great. It doesn't get much better than de-escalation. He doesn't have "need to know" that you had a plan that would allow you to kill him, if necessary.
I wouldn't spend too much time trying to get into this guy's head about why he chose you or why he went about it like he did. You'd likely be giving him way too much credit.