Tax the foreign money used for RE like Canadian workers' money is taxed.  That means that income taxes need to be filed and all the money used for the purchase needs to be accounted for as taxable income.  You don't have to "prevent a citizen from purchasing a property" to do that.