Trump's warning comes after the Pentagon said two Venezuelan planes flew near a U.S. Navy vessel in international waters.