It's not the Muslims it's the Eastern Europeans that are the "problem". Anyone from the EU can come to any country and immediately work without the need for a work permit.
The issue was there was nothing the UK government could do as it was a EU law that allowed this.