Forty is the line of demarcation that says you're an adult now. You're an adult, so don't pretend you're a kid anymore.
You get in trouble, you have to evaluate: Is it worth getting into trouble again? It's a lot easier to make that decision when you have a career at stake.