Whoever contravenes the provisions of section 4 shall be punishable with imprisonment which may extend to seven years, or with fine, or with both. ...