it is only illegal if you try to misslead and resell the car with lower mileage
it is not illegal for you to wind the miles back, technicly if you told the new owners you had reset the speedo when rebuilt and told them the old mileage your fine
ps i do digital mileage correction