Those functions exist. They are culture and adulthood.
I'm not being glib here. I'm not a crack addict because as an adult I can recognize even trying that drug is a really bad idea, and because I exist in a culture where doing crack is not encouraged, to say the least.