The use of residential proxies is entirely legal. Of course, you shouldn’t use a residential proxy to perform any illegal activity. Secondly, it’s important to choose a legitimate residential proxy provider that is transparent about how they source their IPs – you have to be sure they come from legitimate sources.