People have choices, not everyone who is born and raised in poverty resorts to crime.It is really pretty simple. Don't commit a crime, you won't go to prison. Having sympathy for the criminal is wrong.
They estimate that most people commit crimes every day. However some kids are being born into impoverished inner city areas, into families with parents who don't care, or there's only one mother, and their education is poor for lots of reasons, like good teachers don't want to work there because of the crime, and the students are misbehaving and causing other students problems.
After all of this, they're looking around them and seeing the system as being fucked up, and there's nothing there for them, the only people who support them are the gangs.
And then you tell them not to commit crime.
It's like telling you to go swimming and not get wet.