They are being treated equally. A citizen of France who is resident in Luxembourg would be able to purchase. A citizen of Luxembourg who is resident in France, wouldn't.
You can have rules that apply only to residents, but they have to be applied to any resident.