to do something that will have a bad effect on you or someone else
We are not doing our children any favors by giving them unrealistic ideas of how the world works. Usage notes: often said about something that is intended to be helpful or kind but that has the opposite effect