or knowingly and wilfully solemnizes any marriage forbidden by any person authorized to forbid the same;
shall be punished with imprisonment for a term which may extend to four years, and shall also be liable to fine.