Any person who shall undertake to join others in marriage knowing that he or she is not lawfully authorized so to do, or any person authorized to solemnize marriage, who shall join persons in marriage contrary to the provisions of *this chapter, shall, upon conviction thereof, be punished by a fine of not more than five hundred, nor less than one hundred dollars.