496. Whoever dishonestly or with a fraudulent intention goes through the ceremony of being married, knowing that he is not thereby lawfully married, shall be punished with imprisonment for a term which may extend to seven years, and shall also be liable to fine.