τὸν καπνὸν φεύγων εἰς τὸ πῦρ ἐνέπεσεν → out of the frying pan into the fire, from the frying pan into the fire
(see also ἀποτρίβω): remove from oneself, work off