What I would do though considering you're going for police bots, I'd just make a custom team for them being the police, and if they're I would make the events go like this: OnBotDamaged > Bot > SetTeam > (Enemy) Police.
I'd do that if they're clearly not attacking anything, but if you have any other bots or players in the area that clearly didn't do nothin wrong and get attacked you'll need to solute that problem by fixing their team to go back to being neutral.