Fictional cops rarely have any ethics. Quite famously, they ignore people civil rights or liberties when they “know” that person is guilty.
It’s like the male lead of a shitty romance novel acting super creepy, abusive, and rapey, but it’s okay because it’s fiction and they always luck out and the woman is into it.