Any person who violates this subsection is guilty of a Class 5 felony. However, if the person is at least seven years older than the child he knows or has reason to believe is less than 15 years of age, the person shall be punished by a term of imprisonment of not less than five years nor more than 30 years in a state correctional facility, five years of which shall be mandatory minimum term of imprisonment. Any person who commits a second or subsequent violation of this subsection when the person is at least seven years older than the child he knows or has reason to believe is less than 15 years of age shall be punished by a term of imprisonment of not less than 10 years nor more than 40 years, 10 years of which shall be a mandatory minimum term of imprisonment.
Va. Code § 18.2-374.3