do (oneself or someone) an injustice
To do something that hinders or is detrimental to one. You're doing your kids an injustice by catering to their every whim—they need to learn to be independent.
do yourself/somebody an inˈjustice
judge yourself/somebody unfairly: We may have been doing him an injustice. This work is good.