A Romanian neighbor said the same thing of their country. Sided with the Nazi’s first - then with the Soviets when it looked like they would be the winner. But the Soviets didn’t let them forget that they had first sided with Hitler. (I THINK that is how it went - or vise-versa).
Those were difficult, terrible times for the small nations of eastern Europe. One thing they had to keep in mind was the fate of Yugoslavia.
When, in early 1941, the Yugoslavs rejected an alliance with Hitler, Yugoslavia was invaded and occupied.
So to keep at least some independence, many eastern European leaders made a deal with the devil, so to speak.
During the Revolution (the Russian one), my family was made up of anarchists. When the Bolsheviks looked like they were winning, they fought with the Mensheviks. When it looked like the Mensheviks were winning, they fought with the Bolsheviks.
A lot of Romanians and Italians fought & died for the Axis in Stalingrad. Both changed sides at the end of the war, but Italy was spared the Communist hell Romania (and most of eastern Europe) endured for the next 45 years.