Any person guilty of an offence against section twenty-three or section twenty-five of this Act shall be liable on summary conviction to a fine not exceeding five pounds or to imprisonment for a term not exceeding thirty days or to both such fine and such imprisonment.