We have how many foreign investment agreements? Banning foreign investment is not possible at all. The data is public as well, foreign investors aren't the problem. To say you are doing this would not only be punitively not allowed. So you're literally telegraphing that you intend to do nothing. Or for that matter try to make things worse.
Do these agreements say that foreigners have a right to buy houses in Canada?