I'm 42 and at the other end of the scale. To me the line now that "it's a good learning experience" and "I'll know better in the future" are just ways of saying "I'm making mistakes".
From someone who has been there and done that, best not to make the mistakes in the first place. I had strong ethics to begin with and compromised them many times because I thought that's what you had to do to get on. I was wrong.
Learn from listening to experience and watching others fail or succeed, much smarter.
You can never have enough advice before making decisions. Find successful people you trust and listen to them.
Much easier than having to go through your own hassles.
You'll be happier.