Two things can be true at once. It’s unlikely that there is only one cause to a problem in something as complex as the economy of a country.
Both immigration (both legal and illegal) and employment regulation should be considered and evaluated accordingly. Dismissing one or the other won’t give us a good understanding of reality.