Out of the frying pan and into the fire

1. Going from a situation that is not too bad to a situation that is very bad.