After getting stuck in a claw machine, a 4-year-old girl may have learned a valuable lesson.

On Dec. 20, while at a restaurant in Airlie Beach, Queensland, Australia, Poppy Pike apparently found herself in a predicament.

Melanie Pike, Poppy's mother, caught the moment on video when she discovered her daughter was trapped inside the machine, according to Storyful (SEE THE VIDEO at the top of this article).

ELF IN LOUSIANA FAMILY'S HOME GOES MISSING: DOG LOOKS GUILTY, KIDS ARE CRYING

Poppy's older sisters had convinced her get inside the claw machine in order to grab some teddy bears, Storyful reported.

girl stuck in claw machine

4-year-old Poppy gets stuck inside claw machine after her sisters convince her to climb inside. (Melanie Pike via Storyful)

Pike and her partner were reportedly enjoying lunch when they were alerted of Poppy's difficult situation by the eldest daughters in the family.

"At first we just thought her arm was stuck, until we walked outside and saw her fully in the machine," Pike told Storyful.

Poppy was able to get out in a matter of five minutes, with careful instruction from Pike and her partner, Storyful reported.

Poppy Pike, 4, is seen trapped inside a claw machine after apparently climbing through the swing door located at the bottom.

Poppy Pike, 4, is seen trapped inside a claw machine after apparently climbing through the swing door located at the bottom. (Melanie Pike via Storyful)

INDIANA PRINCIPAL GOES VIRAL ON TIKTOK AS ‘THE ELF ON THE SHELF,’ PERFORMING HILARIOUS PRANKS FOR STUDENTS

Poppy was able to direct herself back through the hole she had originally entered, as seen in the video.

claw machine stock photo

With some extra assistance, Poppy was able to get out of the claw machine and return her stolen goods. (iStock)

Once Poppy had freed herself from the machine, she was instructed to return the stuffed animals which she had taken, Storyful reported.

"She stole two teddy’s [sic] which I made her give back to the bar staff to teach her a lesson about stealing," Pike told the news agency.

CLICK HERE TO SIGN UP FOR OUR LIFESTYLE NEWSLETTER