The deterrent for such action is that government officials are under the obligation to disobey orders that are unconstitutional. But that loyalty to the constitution doesn't seem to be strong anymore. High positions in the US government are now occupied by the kind of people who would follow those orders without hesitation.