jiǎo​tà​liǎng​zhī​chuán

to have a foot in both camps