At any given moment you have the power to say:
This is not how my story is going to end.
Then, it is up to you to start writing what goes on the next pages of your story with the choices you make and the actions you take.
It has always been your story. Do not let someone else write it for you.