What is the meaning of [you can’t run with the hare and hunt with the hounds]

You cannot support two opposing parties at the same time.