If you are in a corner while sparring, there are only a few options to get out of it. Sensei Simo Ilic from Switzerland shows his favorite technique to do in this situation. As explained in the video, try to do a quick step to the side as soon as the opponent attacks. Add an Ushiro-Keri to score a point. The most important thing to do is the sidestep before the counterattack.
Any other ideas of what to do when in the corner? let me know in the comments!