If your adversaries are stronger than you, it is better to join their side
The earliest known use of the term is in the Atlantic Monthly magazine, in 1932 by Senator James E. Watson