(a) It shall be unlawful for any employee to engage in sexual conduct with a person who is in the custody of the Department of Corrections, the Department of Youth Services, a sheriff, a county, or a municipality.
(b) It shall be unlawful for any probation or parole officer to engage in sexual conduct with a person who is under the supervisory, disciplinary, or custodial authority of the officer engaging in the sexual conduct with the person.
(c) Any person violating subsection (a) or (b) shall, upon conviction, be guilty of custodial sexual misconduct.
(d) Custodial sexual misconduct is a Class C felony.
(e) For purposes of this article, the consent of the person in custody of the Department of Corrections, the Department of Youth Services, a sheriff, a county, or a municipality, or a person who is on probation or on parole, shall not be a defense to a prosecution under this article.