The actions of too many of our citizens, encouraged tacitly or overtly by the likes of BLM, Al and Jesse, the White Knucklehood's, and the rest, cause the police reaction.  Simply put-  Live a life that avoids criminal, anti social and disrespectful behavior (not just towards police but society in general) and the odds of having bad interactions with law enforcement, or anyone for that matter, drop dramatically.