This quote is advising you to not make mistakes yourself if you can learn from the mistakes already made by others. It’s emphasising that you cannot spend your life making mistakes but if you take the time to learn from other people’s mistakes, you can avoid repeating them.