A person who commits any act of open or gross lewdness is guilty: For the first offense, of a gross misdemeanor. For any subsequent offense, or if the person has previously been convicted of a sexual offense, for a category D felony. A person 18 years of age or older who commits an act of open or gross lewdness in the presence of a child or a vulnerable person is guilty of a category D felony.