Persons being within the degrees of consanguinity within which marriages are declared by law to be void, who knowingly intermarry with each other, or who commit fornication or adultery with each other shall each be imprisoned for not more than 10 years.