Any person subject to this chapter who--
(1) violates or fails to obey any lawful general order or regulation;
(2) Having knowledge of any other lawful order issued by a member of the armed forces, which it is his duty to obey, fails to obey the same; or
(3) Is derelict in the performance of his duties;
shall be punished as a court-martial may direct.