That's a valid concern. Back in the mid-1960s I witnessed black mobs going after innocent white victims in the city. It wasn't pretty. While sitting in my car I saw a mob lift a concrete garbage receptacle and drop it on a couple from behind. Saw them running through the street chasing down a guy and giving him a beatdown. During those times, I got beatup by groups of four, but luckily not by a mob. Don't get caught by a mob is the lesson. Unless you have grenades or other weapons that can inflict mass casualties, which is not likely for most of us.
Mobs generally run from gunfire, in the U.S., anyway.
I am not saying it is 100% effective, but most U.S. mobs do not seem highly motivated.