They are right, depending on your meaning, but one is nonsensical. If we say "he has nearly been to every country", it implies he drew near to the country, but did not actually set foot. If we say "he has been to nearly every country", then it means he has traveled to almost all countries.