We can feel cornered even if we aren't "really" cornered.
The only time I have been "really" truly cornered, I was physically stuck in an alley with a man twice my size. (Was a scrawny teen at the time, no more than 150lbs, which is nothing for my over 6 foot tall frame.) I reacted by smiling, playing nice, getting his guard down, and then I kneed him in the crotch with all the force I was able to muster, then I kneed him in the face with the other knee when he buckled over, and then I kicked him in the kidneys for good measure before I ran for it, just to be absolutely sure I wouldn't be followed at all....
Burly (I think) Russian sailor.
Point I'm making is that.. Once you are "really" truly cornered you can do whatever is necessary to get out of the corner.
But, if you aren't "truly" cornered, you can walk away, you can choose to try and get to the person that you feel is cornering you, you can get out of the corner, or realize, you aren't really in a corner.
More often than not, we corner ourselves because we can't think of solutions, because we don't want to compromise, because we "need" to be right, because of our own flaws, and when we lash out at the person or persons we "feel" are cornering us, then we're projecting our own flaws onto them, and it's not fair to them, Even if they're not being fair to us.
So yeah,..
Take a step back, look at the situation as objectively as you can, see if you can find a solution that doesn't require you to do unfair harm to someone else.
If you can't, then either, you're not objective enough and you could use the advice of someone else, or, you're really cornered, in which case, you can do whatever you can to get out of the corner.