means that
one cannot sincerely support two opposing sides at once when their interests are incompatible.
similar
You cannot serve two masters.
When you cannot support two opposing parties at the same time; you have to decide on which side you are, in a situation involving two parties with…, the saying “You can’t run with the hare and hunt with the hounds,” is appropriate.