A Mexican senator is proposing legislation that would block any attempt by Donald Trump to force the country to pay for a border wall, amid outrage over President Enrique Peña Nieto's meeting with the Republican candidate last week.

“It was an historic error for our president to invite a person like that to our country. [Mr Trump] used us as a campaign tool,” says Mexican senator Armando Rios Piter.

As the Republican presidential candidate rose in many polls early this week, Senator Rios, from the leftist PRD party is planning to introduce a bill that would prepare Mexico for a fight if Mr Trump wins.

“The goal is to foresee and prevent any negative effects on Mexico if Trump becomes president of the United States,” Senator Armando Rios Piter tells the Telegraph from the senate floor.

Last week, Mr Trump made a flash visit to Mexico where he backed off his anti-immigrant rhetoric and called Mexican president Enrique Peña Nieto a “friend.” That night, Mr Trump returned to Arizona, where he reverted to his aggressive stance.

“Mexico will pay for the wall,” Mr Trump said to a raucous crowd in Arizona after coyly saying from Mexico that he and President Peña Nieto hadn’t discussed the issue.