How does "in court" stop the injustice being perpetrated? How does it tell other officers that in the future they won't be able to do what they please without fear of interference until after the fact? At some point the relationship between the police and the citizens will become so toxic that some officer is going to push a crowd too far and pay the price. And then we'll have arguments online with some people advising to obey all orders, even illegal ones, and other people advising that they're done allowing injustice and abuse, and the law-abiding police will be caught in the middle. The culture of the police has to change from "do what I say or face the consequences" to more "protect and serve".