Renting N-reg is not itself illegal.
The problem is that ANO Article 115 prevents Aerial Work in a foreign reg without DfT permission, and the DfT permission (which itself is available only for training the applicant) will never be issued to a renter because he won't satisfy the DfT aircraft ownership requirements.