Trump was getting pushed back into a corner by two opposing forces....in full view of the audience of millions. Of course he's going on the defensive and rightfully so. He's certainly well acquainted with what it looks like after this term as President played out.
I don't think he believed Wallace would be his opponent in this debate. But he certainly proved to be just that.