Any person subject to this Act who commits any of the following offences, that is to say,
shall, on conviction by a Security Force Court,—
(A) if he commits any such offence when on active duty, be liable to suffer imprisonment for a term which may extend to fourteen years or such less punishment as is in this Act mentioned; and
(B) if he commits any such offence when not on active duty, be liable to suffer imprisonment for a term which may extend to seven years or such less punishment as is in this Act mentioned.