(4) The person has previously been convicted of unlawful sexual intercourse in the first degree, rape in the second degree or rape in the first degree, or any equivalent offense under the laws of this State, any other state or the United States.
Rape in the first degree is a class A felony.