I've wondered about this as well.

From what I can gather, at the very least dealing certain drugs was very much looked down upon.

I've heard (from a relative who worked for a mob front, in Melrose Park) that Rocky Infelice was held down for many years, because he sold heroine, in the late 50's early 60's. However there were no qualms in funding drug dealers via juice loans.