Encounters like this are obviously designed with the idea that the party can just load the game if they lose. No GM would ever create an encounter like that for a level 4 party