If the courts have ruled that the US Constitution prohibits intervention until  someone “becomes an imminent danger to themselves or others” what is your solution?

That standard came about because States, like Oregon, locked people up, gave them lobotomies and generally treated them exactly as was depicted in Kesey's book and movie "One Flew Over the Cuckoo's Nest".  Of course, Oregon also forcibly sterilized them for 70 years as well.   All in the name of "doing what is best for them and for society".

What is your legally enforceable  'compassionate solution'?