You can’t force people to operate in your country. The EU does not have sovereignty over the whole world. This is nonsense and is certainly not what is contemplated by the law.
Making it undesirable for some businesses to operate in your country is part of the cost-benefit analysis you have to do when passing laws.