To escape a stressful, or dangerous situation only to end up one that is even worse
It was a contemporary and colleague at the court of Henry VIII, Thomas More, who coined the expression in 1532