I've had this problem for a few days and it seems really scary

for the last 3 days I have had the sensation, that my upper gum, of my upper teeth, has been burnt. Last night I took a look, and it turns out the my gum there is completely red. However, there is a super sharp line of the redness, so it looks nothing like the pictures I find online.

It spans across my entire upper gum, but there is nothing on my lower teeth. Any help is much appreciated.