Check if you have a sprain or strain It's likely to be a sprain or strain if: you have pain, tenderness or weakness – often around your ankle, foot, wrist, thumb, knee, leg
[nhs.uk]
[…] or back the injured area is swollen or bruised you cannot put weight on the injury or use it normally you have muscle spasms or cramping – where your muscles painfully tighten
[nhs.uk]
The joint could become swollen and sore simply from physical activity or minor injury.
[healthline.com]