I have not ever been in danger of being bashed or anything like that but I have had scary men come onto me in scary ways. Being trans increases your risk, but so does just being a woman, don't forget that.
In one situation I am thinking of I felt like I had no way out of it except my wits and I vividly remember being so nervous and wishing maybe I had some kind of a backup if that failed. On my way back home, once I wriggled out of the situation, I was thinking very seriously about getting some mace to keep in my purse or something like that. Now that some time has passed though, my feeling is that I eluded trouble by diffusing the situation, NOT escalating it. Mace could escalate a situation...a gun is the ultimate escalation. If you have great skill and training, like somebody said they were in law enforcement, yeah I can see a gun being perfectly reasonable to have. But if not, it just seems like a bad idea to me, certainly for me it's a bad idea. Mace otoh... idk, it might be smart to have.
I honestly don't know the right answer to self-defense for women, or if the answer is different for trans women with our somewhat elevated risk. I think the advice to just be careful is good. I do think I have been very careful, often I feel like I am being hyper-viligant to a fault and I'm going to give myself an ulcer with all the worry. But, ya know, I think the smart thing is just try not to put yourself in terrible positions. One time I was being practically groped by two men on the train who would not leave me alone, and I was 1000% safer because it was the middle of the day and the train was full of people. If I had been alone because it was in the middle of the night, prob a different outcome to that ordeal.
Generally speaking, if you don't put yourself in risk-to-the-max situations you'll almost for sure be fine. It's mostly ghost stories that drive the fear into our heads and hearts, and maybe I have told some ghost stories of my own in this post. But honestly, even though I have been scared, I probably have never been in real actual danger. Also I'm speaking of one or two things that happened to me, but I feel like I'm making it sound like my life is full of terror. It isn't, like not at all. I actually don't believe there is any practical risk out there for most of us. Can bad things happen? Yes, of course, they DO happen, but the odds are very low if you just approach being alone like a woman and not a man. Don't go walking out in the middle of the night by yourself! You simply can't safely do that anymore! Things like that...