This was surprisingly pretty close to be averted.
The Febuary Revolution could've been a precursor to another one if RUssia did not pull out of the war when they did. If they did remain in the war, the malcontent feelings would've let Lenin and his Bolsheviks rise up, since he was open about ending the war. Lenin had good ideas, but his execution would've been utterly haphazard to say the least, plus, given what we now know of Joesph Stalin, wouldn't be difficult to see Stalin usurping Lenin after his death.
Russia leaving the war when it did meant the Entente lost steam and allowed the Central Powers to essentially fight them to a draw. If Russia remained in war, who knows what would've happened, but I heard rumors and such of the USA eventually planning to join. Russia's sudden withdrawal seem to signal the near end of the war.
The war ended with no one really gaining anything... well, Germany did get Austria, but that was because the A/H collasped, but had to give Silesia to Poland after a few years. Poland then formed a union with the new Czechoslovakia while Hungary basically became Russia's satellite after a while. The Ottoman Empire would reform itself once it discovered all that oil and basically became a Great Power again. Hence why they allied with the Jabal Shimmar and chased the Sauds out.
The USA would udnergo our American Depression which we wouldn't get out until FDR and then there was the Pacific War when Japan attacked China and then we got involved. Russia was something of an aloof ally, though they did give Sakhalin up for the Ainu Republic, which was nice.
Russia becoming an autocratic state would undo all of that and who knows what would've happened?