Another way to say "Portugal is next to Spain." is "Portugal is one of the countries at the Spanish border."