idiom
out of the frying pan into the fire
Meaning
to go from a bad situation to a worse one
Example
Leaving that job was like jumping **out of the frying pan into the fire**.