Any person who effects an enlistment or appointment in or a separation from the national guard of any person who is known to such person to be ineligible for such enlistment, appointment, or separation because it is prohibited by law, regulation, or order is guilty of a Class C misdemeanor.