Your past doesn't determine your future
People make mistakes. It's inevitable, it's a part of life because we live in a broken world. Even if you would be super careful all your life, you won't be able to avoid some blunders or missteps because you can never have complete control over all the circumstances that led to that wrong decision or move. Also, there are things surrounding you that actually want you to fail, so you don't only have to be cautious but are in constant battle. Does that mean you should condemn life and yourself altogether? No! You should step up to the battle and fight with everything you got.
Some people start beating themselves up after a wrong decision. They start confessing negativity about their future, even though they cannot foresee what will be in the future. The same way they are seeing a dire future, they could also choose to see a hopeful future. Are you aware that most bad situations people find themselves in are not really the result of that bad decision they made in the past but the subsequent actions, thoughts, and words that followed after? That means after a mistake has been done the focus should not be on the actual mistake but on your words, actions, and decisions that follow. For example, someone makes a bad investment decision and loses all of the money they invested. They sit down to think about what led to that bad decision and move on to see how they can avoid that same mistake and go ahead to invest into something else with lower risks. Wouldn't that person succeed and regain the money lost and even make a surplus? Very likely. Now think about that same person in the same situation, but this time they speak negative things about themselves and believe that since they made that mistake they could never succeed in life. What would that outcome look like? Not great, I'd say. And that's exactly the point.
Making mistakes is not a death sentence to happiness and success in the future. Of course, there are some mistakes that may still affect you years later but does that mean your life is over and you're a failure? Not at all. You always have the choice and option to learn, grow, be better and do better. How your life will turn out is based on your mindset and words as you navigate the twists and turns of life. "So repent [change your inner self—your old way of thinking, regret past sins] and return [to God—seek His purpose for your life], so that your sins may be wiped away [blotted out, completely erased], so that times of refreshing may come from the presence of the Lord [restoring you like a cool wind on a hot day];" ACTS 3:19 AMP