So rules to control rents or to prevent wages being suppressed are "bad" rules but rules to prevent immigration from the EU are "good" rules?
More correctly, all those rules have both good and bad consequences and it's often a value judgement whether you find the balance negative or positive. However, both experience and economic theory show that controls on prices (which is what rent and wage controls amount to) tend to be particularly pernicious in the economic harm they do because they prevent the free market from matching supply and demand. For example, rent controls usually end up causing or exacerbating shortages in places to rent. Minimum wage controls arguably do more good than harm if they are used to prevent a minority of employers from paying exceptionally and unusually low wages (which is not the case for the UK minimum wage which has increased to the point where it's become more like a Government-mandated wage for a substantial proportion of the population, but that's off-topic and a different story.)
Rules to prevent immigration are different in nature because they aren't price controls so they don't really stop the market pricing mechanism from working, and in any case their purpose isn't (usually) primarily economic, but more to ensure countries can maintain stable communities, avoid clashes of values, keep population levels stable enough that infrastructure can support the people living there, prevent people hostile to your country from entering it, etc. etc. It's also also true that immigration controls represent an interference in the free market as well as a restriction on human freedom, but set against that the benefits tend to stack up a lot more than they usually do for price controls. That's why I for one don't have any problems viewing rent controls as usually on balance harmful, wage controls as something to be careful of but can be good in the right circumstances, and immigration controls as generally on balance beneficial, while still acknowledging that all those things cause both some good and some harm.