Engel conditions of generalized derivations on left ideals and Lie ideals in prime rings