A Teesside teenager who repeatedly stabbed his mother’s violent and abusive ex-partner narrowly avoided being sent straight to custody.