Teen develop deadly disease from working out.

Hey guys, there was an article on the news about a 17-year-old boy being diagnosed with rhabdomyolysis, from working out too hard, here's the article https://nypost.com/2018/05/31/teen-diagnosed-with-deadly-illness-from-working-out-too-hard/ , I was wondering how this could be avoided and how can you tell if your body reaches its limit?