When performing mental or physical tasks, the optimal spot to aim for is just barely beyond of your comfort zone. You want to be performing at peak or near peak capacities. This brings about work that is enjoyable, avoids burnout, and improves your performance the most over time. Flow is most often found in this state.
James Clear called this "The Goldilocks Rule".