Any person subject to this part who, except as provided by law or regulation, apprehends, arrests or confines any person shall be punished as a court-martial may direct.