Though not specifically mentioned in this article, all disorders and neglects to the prejudice of good order and discipline in the organized militia and all conduct of a nature to bring discredit upon the organized militia shall be taken cognizance of by a court-martial and punished at the discretion of a military court. However, where a crime constitutes an offense that violates both this article and the criminal laws of the state where the offense occurs or criminal laws of the United States, jurisdiction of the military court shall be determined in accordance with subsection (b) of Code Section 38-2-1002.