Just like allying with Stalin in WWII.
No ... in this example the correct way to portray it to show what I mean, it would be like the USA allying with Hitler and the Third Reich to defeat the USSR, thereby making it easier for Hitler to impose his will on the rest of the world.
Allying with Iran is like allying with Hitler!