I think one has to walk a line here between being aware, and unintentionally broadcasting fear and thereby attracting hyenas. You're hypervigilant, you start to smell like a bunny.
If you appear to be a potentially troublesome victim (does not necessarily mean firepower, someone who seems to be ready to make a lot of noise and attract help usually suffices) and are just mentally present, that should deter almost all mugggers and happy slappers. I saved myself from being mugged by simply looking up from my mobile phone screen and being startled last year. Guy had been approaching me directly, suddendly changed direction and gave me wide birth, pretending nothing's the matter and walked out of my life looking for an easier victim.
If not, it's rahter frustration-release victimisation (Nothing you do deescalates or satisfies the threat.) or a monkey dance (thx Miller and MacYoung). The former you can flee with good chances for success, because you are not under attack yet and he's still ramping up. The latter one can easily walk away from, in part because you are part of the problem.