But they are human. They may be wonderful people down on their luck. They are also capable of being horrible people, committing crimes without any particular excuse, and making bad decisions that are every bit as much their responsibility as it is mine when I make bad decisions. That is irreducibly part of what it means to be human, and if you take that from a group, you have dehumanized them. And in the aggregate, a group of them will inevitably contain some of the latter.
You can't address the problem by neglecting that fact. Many have tried, and as always happens when the solution doesn't match the real problem in the real world, those solutions failed. If berating people about homelessness was the solution, the problem would be solved already. That solution has been tried a lot.