If they were similar in numbers why would it be the Japanese ceding instead of the foreigners? Even if so, it's all the more reason to not let them in in the first place. Keep Japan Japanese for the Japanese
The result depends on the ratio. I don't see why we can't have trade and relations with other countries without also assimilating eachother