The U.S. became involved in wars in Korea and Vietnam to stop the spread .
It fought in Korea and Vietnam .