Not every encounter should be an all out fight against superior forces that require every tool just to survive, let alone win.
There should be some encounters where the players, either individually or as a group, can feel casually effective.
In encounters where the players are unlikely to lose, the objective will be to win as well as possible. To win without property damage. To win without endangering people, or exposing the players' secrets. To win and catch the criminals, as distinct from merely thwarting them. To capture prisoners and get information, instead of merely putting them away, and better, getting the information without the criminals realizing it.
Players should have the option of, "do we beat up this petty thug and capture them, or just knock them down, let them THINK they successfully played dead, while in reality we are set up to stealthily track him back to his lair.
Thinking about encounters like that also gives ideas for powerful bad guys, who have more in mind than simply beating up the heroes.