And no, I’m not justifying the cops response or actions.
Anyone who gets wrongly harassed or pulled over or detained, or even rightly so, just treat the officer with respect and 99% of the time nothing will happen and then you fight your fight in court, legally and lawfully.
Cops can be buttholes, so can detainees. Kindness on either side or both sides goes a long way, and if something really wrong happened, you can appear in court and tell the judge.