Its not a criminal issue, granted an injunction can be issued, but they will struggle to enforce it because of your job... I think you will find the key here is the fact NOBODY is legally allowed to stipulate where you can/cannot work. You have a legal right to earn a living (gotta love some EU laws pmsl)
This also applies if you have a contract which states you are not allowed to work at a competing company within a ccertain radius.. NOT legal.... good enough Lawyers can overcome this