I worked for JAG. If you follow an illegal order, you will be court martialed. And it may carry a felony conviction in your civilian records that will follow you forever. Following an illegal order will destroy your military career and civilian life. Nobody will protect you.