It starts with a question about your build: do you want to hit harder, hit more consistently, or avoid taking damage in the first place? Melee rewards different stat spreads for each answer.
Strength raises your maximum hit, Attack improves accuracy, and Defence reduces what lands on you. A common early approach is to keep Attack and Strength close together and let Defence trail slightly, then shore it up once your gear improves. Ranged and Magic remain open alternatives if you'd rather not close the distance at all.
For reference, one player's long-term build was 92 Attack, 99 Strength, 82 Defence, 94 Magic and 99 Ranged — a lopsided spread that reflects years of specific goals rather than a template to copy.