fall into/avoid the trap of doing something

fall into/avoid the trap of doing something

do/avoid doing something that is a mistake but which seems at first to be a good idea: Parents sometimes fall into the trap of trying to do everything for their children.
See also: avoid, fall, of, something, trap