This was how I grew up (and my kids). I think it's importance is greatly under estimated.
Everyone is different. I grew up the same way. I still did B&E's and stole cars. I was arrested and spent a whole four days in custody. First night in a holding cell, second day in detention in Hamilton, then the weekend in open custody at some house with locked doors. I was 15 years old and had never been in trouble with the law before. You can say that it scared me 90% straight.
But, the real reason I didn't keep going with that lifestyle was my family and friends. My family didn't abandon me, and I still had a loving home to come back to when I got bail. My friends were a mixed pot, three of four were in the same situation as me, while one's parents had enough of him and left him in custody until trial. Honestly, had my friends kept going with that type of crime, I probably would have as well. Family only does so much, but friends influence way more. My belief was always that parents raise kids until they're around 10-12 and then their friends take over. I always hoped that in the first 10-12 years, I would instill enough good values that they would make good choices when their friends suggested something bad.
My partner actually works in a youth facility and what she sees are lots and lots of kids with mental health issues and their parents with mental health issues.
It's such a complicated issue, that from what I know, the vast majority of it leads back to socioeconomic and mental health issues. Seeing people type up that it's parents fault is such a basic thing to say. Sure, it's the parents fault. It's their fault that they were abused as kids, molested or beaten, or whatever. Then you add in that they couldn't afford, or get the support they needed to be able to deal with that trauma. So then they start self medicating. Now you have an addict that can barely take care of themselves, and then you throw a kid in there. Now that kid probably has issues from the mother taking drugs while pregnant, and you know they don't live in white suburbia. So that kid grows up with issues too, and goes to school with lots of other kids with issues. And know one can really talk about the trauma and mental/physical health issues they face, because that would show weakness, and they sure as hell can't show weakness in that environment. So they turn to gangs for protection, because everyone knows that there's safety in numbers.
And the ******* cycle keeps going. And keyboard warriors sit there and type that it's all the parents fault. Yeah, I guess their right. It's all the parents fault. Whatever. I sure as hell don't have the answers either.