避坑落井

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

避

bì

to avoid

坑

kēng

variant of 坑[keng1]

落

luò

to fall or drop

井

jǐng

a well