It is also illegal to riot, loot, and burn private property.
It was only a matter of time before some immature cop wanna be would put himself into an untenable situation and make stupid decisions. This would not happen if Governors, mayors and city councils actually made their policemen do their jobs and the court system did not practice catch and release against rioters and anarchists.