Talk about cutting it close. Melissa Rycroft was injured Sunday during rehearsals for the Team “Call Me Maybe” Freestyle that was performed Monday on Dancing With the Stars All-Stars Week 5. Melissa was taken to the hospital and diagnosed with a disc herniation at the C4-C5 level of her cervical spine. (One of the most common levels for that injury to occur.)

Melissa told E! News that, as of 10 a.m. Monday morning, she still didn’t have clearance to dance. Melissa and her pro partner Tony Dovolani got second and third opinions and finally got the OK to perform (which Wetpaint Entertainment was the first to report). The team routine went very well, and you’d never know Melissa was seriously injured.

But while she did joke on air that she was on a lot of medication, Melissa told E!, "I feel everything. We didn't take pain medication today simply because I wanted to be able to feel if my neck was doing something it shouldn't be able to.”

They even had a little code — for her to squeeze Tony’s hand if something twisted wrong, so he knew to stop. Apparently the issue isn’t behind her, since Melissa said, "This potentially can be a big injury." She has to continue with physical therapy, ice, heat, medication and Tony choreographing around her neck.

She and Tony have their Tango dance tonight, along with the remainder of the individual dances and the Team “Gangnam Style” routine. We’ll have to see if they go easy on her neck or what. Stay safe out there!

Catch a new episode of Dancing With the Stars Season 15: All-Stars on Tuesday, October 23 at 8 p.m. on ABC.

Sources: E! News, People, Spine-Health

Gina Carbone is a contributing writer at Wetpaint Entertainment. Follow her on Twitter @ginacarbone.

For more news about Dancing With the Stars, Like us on Facebook and Follow us on Twitter.