(1) A person who is convicted of an offence under section 5, 7, 8, 9, 10 or 12, in the circumstances referred to in subsection (2) shall, in lieu of the punishment prescribed in the section, be liable, on conviction, to a fine not exceeding $100,000 or to imprisonment for a term not exceeding 3 years.