Police A and Police B who police each other besides the ordinary citizens. Add incentives so that they look extra closely at the other side.
The alternative is two sides fighting a war of escalation which would likely encourage scary corrupt behavior. "Those guys busted Johnny for some minor offense, so lets go get some dirt on one of their guys, or plant it. Can't let them think they can just mess with us"
This is going by the current us vs them mentality of the police forces.
the other option is a higher jurisdiction, eg state police investigating sheriff's deputies or municipal police, or federal law enforcement like the FBI investigating bad actors at the state or major metro level.
That last option is about to get turned inside out, though.