Very early in my police career, I was given an order that was wrong; legally & ethically. I said no.
There was nothing they could do about it, because the inspector knew it was wrong, too.
Stay true to yourself & do what's right, and you'll be able to look yourself in the mirror.