Restricting people's rights has been going on since the beginning of our Nation. It's called law. Every... single... law... restricts a person's rights. The question is whether or not it's justified.Bear fortunately or unfortunately you and I aren't going to solve the problem.
And the sad news is neither are our legislators
I don't think you should preserve one right by trampling on another that sounds like that's what your plan is
Removing someone from society that is a danger to others and giving them the help they need for a mental disorder is justified.
As for solving the problem, maybe our legislators would solve it is everyone got their heads out of their asses and tried for real solutions, rather than ideological platitudes.