How did the witch almost lose her baby?

How did the witch almost lose her baby? She didn’t take it far enough into the woods.