Being hospitalized is an option when more intense treatment is needed. Being hospitalized can keep you safe when you're displaying extreme symptoms. These can be symptoms such as suicidal thoughts or behavior, harming yourself or others.
It's important to remember that, though recovery takes time, it can improve your ability to function. The best chance for success is working with a professional with experience treating BPD.