A person is guilty of criminal sale of cannabis in the third degree when:
1. he or she knowingly and unlawfully sells more than three ounces of cannabis or more than twenty-four grams of concentrated cannabis; or
2. being twenty-one years of age or older, he or she knowingly and unlawfully sells or gives, or causes to be given or sold, cannabis or concentrated cannabis to a person less than twenty-one years of age; except that in any prosecution under this subdivision, it is a defense that the defendant was less than three years older than the person under the age of twenty-one at the time of the offense. This subdivision shall not apply to designated caregivers, practitioners, employees of a registered organization or employees of a designated caregiver facility acting in compliance with article three of the cannabis law.
Criminal sale of cannabis in the third degree is a class A misdemeanor.