Immorality is Incompetent to Hold Authority
If you are ordered by an authority to do something immoral, then the immorality of the one who ordered it collapses their authority. Since all authority is God give, by definition no authority can order immorality. Consider the Nazis, who were all found guilty given their defense of following orders, except for one, who was so insane that they could not prove that he didn't believe it - he was so wicked that they could not prove that he had a pang of conscience and this common knowledge of wrongdoing that all his peers had. Following orders was just their cover, and they hung by the neck until they were dead, by the rope of justice. Therefore, we know that such knowledge existed at the time of their demise that mere orders were no cover for their crime of mass murder, torture, etc.
If you are ordered by an authority to do something immoral, what do you do? You arrest the one who gave the order, on the evidence that they gave the order. Whatever it is called in the end, there is something wrong, which is immediately known by all with enough moral conscience to be useful as a foot-soldier or police officer of the lowest rank. And if you are insane, then you are certainly not competent to do the job.
Be encouraged to use this reminder to levy a stiff wall against those who would try to assert immorality in the name of governance and the protection of the masses of people in their dubious care.