I'm a man, in my 30s now.
When I was in sixth form I was mugged three times in a month. Phone was nicked each time, once with a knife to my throat in front of my younger brother in broad daylight. The insurance company fought paying, but eventually did so on the condition I attended a 'victims of crime' class on street safety.
It was a mixed class, of young men and women my age. It was taught by police folk. They showed us the statistics of who was targeted for street theft and violence (can't remember the details, but it was as you'd expect: men vastly more in danger of injury or death, but women had a greater threat of it being sexual). They taught all of us how to break a grab-lock from behind, but said it was mostly for women. Eyeballs, groin, in-step. Turn yourself from a victim into a source of pain and noise. Women are socialised not to be violent, noisy or messy. Break the mould, break the paralysis, go on the attack and data showed you had a strong chance of walking away. Policewoman talked about the vomiting on yourself trick; Said she'd used it herself when someone grabbed her. Also talked about how even a police woman could be paralysed by social shock, the unexpected break in the rules, and that only her training in overcoming the paralysis and acting in the face of violence gave her the thinking space to do so; that afterwards she thought of all the tactical options she'd actually had (she demonstrated the eyeballs, groin, foot trick, led us all through it) but in the moment was only able to come up with vomit because of the shock.
Fear and shock were the big themes. Fear makes you a target. If you show fear, any trepidation, predators home in on it, even if it's just for harassment to give themselves or their mates a thrill. Men are socialised to not show fear, women are socialised to be afraid and their usual response to harassment (shoulders hunched, turn away) just screams 'target'. Most of the time it would stop at harassment for women, but if a man did the same he was an immediate target for escalating violence. We were taught that body language was key: the ones who looked least afraid were least likely to be attacked. The policewoman said that women who walked about without fear were rare, but those were the ones who would seldom see violence or harassment (or would simply not register harassment as a source of danger or fear).
We were taught body posture, tricks to maintain eye contact under threat (very useful for an aspie in a job interview). I remember when the policeman was talking about 'tactical awareness' to the group and said 'you lads know what I'm talking about': assessing groups for indications of threat, picking routes that were safe and well lit, making sure keys were in your fist and above all making it secret that you were living with your fear. It was the last bit I had failed at, apparently.
Since then I've been attacked three more times. One was a random punch in the face, came out of nowhere when I was walking home from a late shift. Another was five teen-agers jumping me for my phone, literally; also punched me in the face and broke my teeth. The third time I was pretty much expecting to be punched, was already braced and ready, so wasn't scared; they'd stalked me down an empty stretch of road, so I knew what was coming. I turned to face them, and I guess they saw I was ready for violence because after threatening me and taking my change they left me alone.
The class worked, I guess. I walk with maximum awareness, expecting to be assessed as a possible target whenever I'm alone. I identify threats and escape routes. I force myself to walk tall, keep my pace steady (rapid, changing footsteps show fear or other vulnerability), show nothing in my face. After a while it becomes so automatic it's not really fear anymore; it's just another evening stroll. Or maybe that's just what I tell myself so I don't look scared.