避坑落井

bì kēng luò jǐng

to dodge a pit only to fall into a well (idiom)

out of the frying pan into the fire

to avoid

kēng

variant of 坑[keng1]

luò

to fall or drop

jǐng

a well