I would hope I would have the strength of character and moral awareness to refuse to be complicit and supportive of such behaviour. There have been situations I have found myself in where it would have been easier for me to condone and support the unacceptable behavior of certain individuals...
https://www.theguardian.com/uk-news/2016/dec/08/hundreds-police-officers-accused-sex-abuse-inquiry-finds
This doesn't surprise me at all. I personally know of two different women who experienced sexually inappropriate behaviour by serving police officers whilst on duty.