This act does not permit any person to engage in and does not prevent the imposition of any civil, criminal or other penalty for the following:
(1) Undertaking any task under the influence of medical cannabis when doing so would constitute negligence, professional malpractice or professional misconduct.
(2) Possessing or using medical cannabis in a state correctional facility or Regional Jail Authority facility, including a facility owned or operated or under contract with the Bureau of Corrections or the Regional Jail Authority, which houses inmates serving a portion of their sentences on parole or other community correction program.
(3) Possessing or using medical cannabis in a youth detention center or other facility which houses children adjudicated delinquent, including the separate, secure state-owned facility or unit utilized for sexually violent delinquent children.