Any member of the National Guard or Naval Militia of Alabama who shall wear the uniform or equipment or any part of articles of uniform or equipment issued by the United States, or owned by the State of Alabama, while not on duty, without authority, shall be punished as a court-martial shall direct.