They have a duty to do so - or risk violating their own Oath to defend the Constitution...
Fulfilling the duty - aye, there’s the rub.
Especially if given an order that violates the Constitution.