Usually if you are extremely poor or extremely rich there are no consequences for you. The extremely poor are desperate and have nothing to lose, society already took everything from them. The extremely rich are above the law. As inequality increases crime increases with it, from vandalism to financial crimes.
This is why equality is so important. When the average Joe has a good job, good salary, and a home then can lose things that society has helped him to get and can take away.
A simple and unremarkable person could once upon a time have their basic factory job (or similar), make enough to own their home, and have a decent unremarkable life with their family. I think the pressures of housing costs or rent and other costs of living squeezed those people, often to distress. It's obviously not the entirety of a solution, but it's surely part of it.
People act bad like this not because they're any more particularly free to, but because they're given incentives to. People get slighted by their county, state or the federal government, and everybody else shuns them. It's normal and practically expected to ignore homeless people, for example, and even blame them for their condition. The rich and the lucky are hostile and entitled, while the poor and mentally ill are harassed and taken advantage of. People get radicalized, even trained to commit worse crimes by what's expected of them. Nothing else gets attention or achieves anything.
It's never been about consequences, people do this whether it'll get them 25 years or not. People do this whether they'll get caught or not. They do it because they think it needs to be done, they think it's deserved and they want to get back for everything that's been taken from them and caused to them. And for that, everybody hates them and treats them like everything that's wrong with the country. When in reality, what's wrong with the country is what's creating people like this. Seeing violent criminals makes me sad for what they suffered, not angry at them for being the problem.