Any person subject to this Code who affects an enlistment or appointment in or a separation from the State military forces of any person who is known to him to be ineligible for that enlistment, appointment, or separation because it is prohibited by law, regulation, or order shall be punished as a court-martial may direct.
20 ILCS 1807/104b