Are you seriously asserting that removing badge and inviting a prisoner to "bring it on" is professional conduct? Or are you admitting that it is unprofessional? Taking off the badge while on duty, while in the jail or police station, while you have a uniformed assistant standing "right there," is not a professional or even mature response to a taunting asshole. Do you say otherwise?
Condescension does not benefit your ultimate cause. My point wasn't and isn't to make you an automaton. You should have noticed a previous remark of mine, to you, that suggests treating some contacts different from others, as a means of building (civilian) community support behind your actions.
Not that it matters, but I have had and do have a substantial number of friends in law enforcement. I am a civilian. Given the attitude you present on this thread, I would not adopt you as a friend.