North Korea called for help from Communist China and Comrade Stalin in 1950. Americans got pushed back by the communist Chinese.
Long story short, General Douglas Mac wanted to nuke China, Truman said no. General Douglas Mac fired by Truman and borders is what you have today. Technically the Chinese pushed them back and defeated the Americans.