You don’t need to accept the premise. It’s not (generally) the case that Japanese people don’t want foreigners there. A more correct statement would be that some Japanese people don’t want some foreigners there. Which is true of any country. If one person has felt bullied and excluded when trying to integrate in Japan that sucks, but I also know of plenty of people who have felt bullied and excluded trying to integrate in America, too.