I'm not suggesting that at all. Putting on a badge enhances assault legal protections. Assault on a peace officer is an upgraded charge from assault on a civilian.
Being a cop enhances your chances of being in a volatile situation. But you also have more leeway in how you address that violence, and have the backing of legislative branches (via legal enhancements such as assault on a peace officer) and the judiciary (via qualified immunity, among other things).