Soviet-allied Cuba was a military threat to the U.S. in 1986 which is when the movie is set. Don’t forget the movie was written before the fall of the Soviet Union. And even when it came out in 1992, it wasn’t clear to audiences that the cold war was really over.
Is Cuba a military threat today? No. But that’s because we have had a navel base there for more than a century, and the Soviet Union is long gone.