You have to learn how to tell the difference. It isn't at all obvious to an inexperienced person, which means that "discomfort" as you put it (we just called it "bad pain" and "good pain") can cause a lot of anxiety for someone who isn't used to it. Even professional athletes sometimes make mistakes and injure themselves in training, so the distinction isn't always clear even to them.