(a) If a person marries another who is within the degrees of relationship described in section 2-302, and the relationship is founded on consanguinity, the person is guilty of a misdemeanor and, upon conviction thereof, shall be fined not more than $500, or be confined in the county or regional jail for not more than six months, or both, in the discretion of the court.
(b) If a person who is a resident of this state marries in another state or country, the person violates subsection (a) of this section if:
(1) The persons married are within the degrees of relationship described in section 2-302 and the relationship is founded on consanguinity;