[Explanation] Metaphorically, the two sides are at loggerheads, both lose, and the third party takes advantage.
[Source] "The Warring States Policy Yance II" records that the clam opens its shell to bask in the sun, and the snipe pecks it, and its mouth is caught by the clam shell, and the two sides do not give way. The fisherman came and caught them both.