Canada has already banned foreign buyers, in some cases even if they are legally living/working in Canada. (This is despite the fact that it’s mostly an ongoing domestic speculation problem, as indicated here, … and despite the fact that Canadians own billions of dollars of property in the US and elsewhere.)