(2)Every person subject to naval law who commits any other civil offence shall be punished either with the punishment assigned for the offence or with imprisonment for a term which may extend to three years or such other punishment as is hereinafter mentioned.