How to not commit suicide

I was a good college student obsessed with ending my life. What to do when your own brain is out to destroy you?