Section 122D. No person shall purchase or possess self-defense spray who:
(i) in a court of the commonwealth, has been convicted or adjudicated a youthful offender or delinquent child as defined in section 52 of chapter 119 for the commission of: (A) a felony; (B) a misdemeanor punishable by imprisonment for more than 2 years; (C) a violent crime as defined in section 121; (D) a violation of a law regulating the use, possession, ownership, transfer, purchase, sale, lease, rental, receipt or transportation of weapons or ammunition for which a term of imprisonment may be imposed; or (E) a violation of a law regulating the use, possession or sale of a controlled substance as defined in section 1 of chapter 94C including, but not limited to, a violation under said chapter 94C; provided, however, that except for the commission of a violent crime or a crime involving the trafficking of controlled substances, if the person has been so convicted or adjudicated or released from confinement, probation or parole supervision for such conviction or adjudication, whichever occurs last, for 5 or more years immediately preceding the purchase or possession, that person may purchase or possess self-defense spray;