A person is guilty of unlawfully dealing with a child in the first degree when:
It is no defense to a prosecution pursuant to subdivision two of this section that the child acted as the agent or representative of another person or that the defendant dealt with the child as such.
It is an affirmative defense to a prosecution pursuant to subdivision two of this section that the defendant who sold, caused to be sold or attempted to sell such alcoholic beverage to a person less than twenty-one years old, had not been, at the time of such sale or attempted sale, convicted of a violation of this section or section 260.21 of this article within the preceding five years, and such defendant, subsequent to the commencement of the present prosecution, has completed an alcohol training awareness program established pursuant to subdivision twelve of section seventeen of the alcoholic beverage control law. A defendant otherwise qualifying pursuant to this paragraph may request and shall be afforded a reasonable adjournment of the proceedings to enable him or her to complete such alcohol training awareness program.
Unlawfully dealing with a child in the first degree is a class A misdemeanor.
N.Y. Penal Law § 260.20