Europe has an ocean to keep most of its poorer would-be neighbors away. You can't wave away geography. The US is comparable to Europe, not one country in Europe.
Which is this ocean you are talking about? Because Europe has only the Atlantic Ocean on its West and the nearest countries on the Other side of the Atlantic are the US and Canada.
Yes they call it a sea, because it is not an ocean, I don't understand why you call me a pendant. More importantly though, you might not be following the news in Europe, but many immigrants try to cross the Mediterranean in order to get into Europe, and many unfortunately die. So it is not that it keeps anyone away.
I brought up the Mediterranean specifically because of the news reports I have heard about all the people dying while trying to cross. If "many unfortunately die", it sure as fuck seems to be keeping some people away, by killing them. I'll also assume that the serious danger of crossing the sea prevents some people from doing it.