More often than not, people are shaped by their environments. Although it is not always the case, as there are millions of examples of the opposite, the odds would suggest that a kid growing up in the hood would be more exposed to a life in the streets than they would be to witnessing certain activities in their neighborhood.
A kid growing up in suburbia likely wouldn't be exposed to such circumstances, so the pre-assumption is that they wouldn't fall into a life of crime Yet, history has shown that plenty of kids who grew up in suburbia with middle-class and/or wealthy backgrounds grew up to be adult criminals (white collar, blue collar, murderers, serial rapists, etc), committing some of the worst crimes society has ever seen.
Shyt, our current President, Donald Trump is an example of this. Grew up in wealth the moment he was out of the womb, but fast forward 5-6 decades later, and he got more felonies than anybody in the hood. Sure, he's President, but remove that title from his resume, by definition, he's nothing but a sheisty criminal, a convicted felon, to be exact. His upbringing didn't prevent that, so there's a lot more to it than someone's environment for why they may or may not engage in a life of crime.
Again, I feel like people who never lived in the hood a day in their life have an exaggerated and somewhat comical idea of what people are like and what actually goes on within, basically, they think it's just like what they see in TV shows, movies, music videos, or YouTube, etc, truth be told, most “hoods” are not violent, filled with criminals running around left and right, drugs, everywhere, etc, etc.
For example, Ice Cube touched on this perspective when he created Friday, partly because he wanted to change the perception that the hood was nothing but crime, gangs, and drugs, but rather just decent people living, laughing, and having a good time amongst themselves. It's not all misery and gloom.