By definition, they are not.
That's wrong, I agree, but they are not illegal if they are deemed to have grounds for asylum. Regardless of their travels.
Unfortunately, the British government are tied by international law.
The Rwanda scheme seemed to stem arrivals. Sadly, the new government scrapped the scheme before putting a new one in place.