When it comes to walking the red carpet, a wardrobe malfunction might be the worst thing that could happen to a celeb. (Other than showing up in the same dress as someone else, like Carrie Underwood and Faith Hill sorta鈥 did at the Grammys.) With plunging necklines, thigh-high slits, and teetering stilettos, a lot can go wrong鈥 on camera. Demi Lovato came thisclose to wiping out on the Grammys red carpet (there鈥檚 pictures to prove it!), but managed to avoid the sitch like a total boss.

LOS ANGELES, CA - FEBRUARY 12: Singer Demi Lovato attends the 59th GRAMMY Awards at STAPLES Center on February 12, 2017 in Los Angeles, California. (Photo by Axelle/Bauer-Griffin/FilmMagic)

The 鈥淐onfident鈥 singer stunned in a delicately crocheted Julien MacDonald dress that featured a very prominent keyhole top. Demi was taking A LOT of risks that night, but the singer鈥檚 most dangerous area was actually around the hem of the dress.

@ddlovato u good?

A post shared by Claudia Oshry Soffer (@girlwithnojob) on

As @girlwithnojob pointed out on Instagram, the Disney Channel alum waded into some very hazardous territory when the spiked heel of her gold Giuseppe Zanotti sandal got entangled in the hem of her gown. Gah! Is your heart in your throat?! Apparently, it wasn鈥檛 the only time this happened, either: As Footwear News reported, the left shoe also gave her a little trouble with regard to the dress鈥 hem.

LOS ANGELES, CA - FEBRUARY 12: Singer Demi Lovato attends the 59th GRAMMY Awards at STAPLES Center on February 12, 2017 in Los Angeles, California. (Photo by Axelle/Bauer-Griffin/FilmMagic)

Luckily, somehow, some way, whether by luck or thanks to an eagle-eyed assistant, Demi found her way out of this hairy situation, with no Jennifer Lawrence style tumbles to report. Phew! It just goes to show that stars make looking good seem much easier than it is sometimes.

Bravo, Demi. We鈥檙e seriously impressed.

What鈥檚 the biggest wardrobe malfunction you鈥檝e ever had to endure? Share with us @BritandCo.

(h/t Refinery 29, photos via Axelle/Bauer-Griffin + Jon Kopaloff/Getty)