Can a judge go abroad to become a lawyer if he is fired?

After the judge resigns, people with lawyer qualifications can engage in the legal profession, but the corresponding law imposes "competition" restrictions.

The Lawyers Law and the Judges Law stipulate the ratio of persons who have served as judges to persons who have served as lawyers. Article 41 of my country's Lawyers Law stipulates: "Lawyers who have served as judges or prosecutors shall not serve as litigation agents or defenders within two years after leaving the People's Court or People's Procuratorate"; Article 17 of the "Judges Law" Paragraph 2 stipulates: “After leaving the People’s Court, a judge shall no longer serve as a litigation agent or defender for cases heard by the original court.