Any person who contravenes any provision of section 7, 8 or 9 shall be guilty of an offence and liable on conviction to a fine or to imprisonment for a period not exceeding two years.