Is it ok to continue living as a loser or it will be better to end my life?

everything is falling apart. Im making the same mistakes that i had made before which ultimately led me to make a suicide attempt. Im afraid that im again gonna fall into that pit, im getting depressed again like i did before aswell.