A person is guilty of rape in the second degree when:
It shall be an affirmative defense to the crime of rape in the second degree as defined in subdivisions one, two and three of this section that the defendant was less than four years older than the victim at the time of the act.
Rape in the second degree is a class D felony.
N.Y. Penal Law § 130.30