The song was originally in Willy Wonka. That is why the implication of the candy man being a drug dealer doesn't fit the lyrics perfectly.
I still think they meant it as a drug dealer implication in Malcolm in the Middle. Francis explicitly says "Isn't he a convicted felon?" Spangler replies "he was acquired" and another student interjects "so was I but I'm still here"