bàn​jié​rù​tǔ

to have one foot in the grave