27. Any person subject to this Act who, on active service, commits any offence against the property or person of any inhabitant of, or resident in, the country in which he is serving shall, on conviction by court martial, be punished with rigorous imprisonment for a term which may extend to fourteen years, or with such less punishment as is in this Act mentioned.