You did the wise thing. Cis or trans, when you're with an aggressive person, whether the aggression is related to race, religion, gender, or just him not liking the looks of you, you need to decide what's going to have the best outcome. I think you kept a very level head.
But that situation is scary. Not necessarily a trans thing, right? I mean a huge percentage of the cis female population has come in contact with violent or sexually aggressive men. It's terrifying because very real harm comes to women in those situations. I don't think any of us ever feel comfortable even after we escape.
When that sort of thing happens to me (which is very rare - I don't think it's happened to me ever as an adult, though as a kid I was bullied frequently) I just remember that attempting to instill fear in someone who is not harming you is a nasty and anti social, and that I've just stared into the eyes of evil.