We can use that mistakes as a stepping stone and a learning for us to become more mature and more knowledgeable.
I am trying to understand your point here. Are you suggesting that one makes the mistake in order to learn from it? I would prefer you don't let it happen at all in the first place. But if it does happen, you need to check your past so that you don't repeat it.