If you don't have the right of residence and work in the UK then I think you will find that you cannot be legally employed as a UK based pilot, flying a British registered aircraft. I also believe that the penalty for an employer that did break this law is very considerable and may include the loss of that company's right to operate aircraft.