Yes, it has to be legal, but at the same time we mustn't forget the purpose. If the law is difficult to enforce, you can't respect the spirit of the law, and you have to find a solution that better reflects reality.
On September 18th, 2023. See this statement in context.