1. Anyone who, with the intent to harm the other party to the marriage, enters into an invalid marriage shall be punished with imprisonment for a term of six months to two years.
2. The offender shall be exempt from punishment if the marriage is subsequently validated.