The Prime Minister has made a major mistake with his criticism of Nigel Farage's migration plans, according to a former MEP.