Scared of being alone with my thoughts

I was thinking about how it is so easy to just do something: You think about doing it and most of the time you follow through depending on what it is. I have so many thoughts about harming myself or killing myself that it scares me and I feel like I’m going to give into my thoughts. All I have to do is grab a knife... it’s so simple. I haven’t wanted to commit suicide since my depression got better last year and I have never cut or harmed myself on purpose. I’m just kind of scared that I’ll eventually end up hurting myself, or dead.