1、have/keep a foot in both camps

2、to have it both ways; to keep a foot in both camps

3、The gun runner has a foot in both camps;he sells arms to both the Arabs and the Israelis.

4、The only way to make sure of one's own gain in an argument is to have a foot in both camps.