Ever heard the mantra, "Sticks and stones may break my bones, but names will never hurt me"?
If you use vile language in response to an out-of-control, foul-mouthed police officer, all you are doing is lowering yourself to his/her level and further inflaming the situation. Best is to remain polite, calm, and mostly silent.
Keep in mind that such an "officer" is as dangerous as an armed Claymore mine; all he/she needs is the right trigger to explode. And you are on the "Face Toward Enemy" side of that mine.