How vain should a man be? The answer isn’t “not at all”.

Vanity is not one of the deadly sins. That’s just an oversight, though. Vanity deserves a spot on the list because, like the other seven, we’d fall apart without it, individually and collectively. The list should in fact be called “the seven things you need a decent dose of, but overdo them at your own risk, dummy”. Bad copy, sure, but nearer the truth. Life would be dreary without some lust or gluttony; impossible to bear without pride; lack inspiration without envy; and downright dangerous without the threat of wrath or the moderating effect of sloth.

It’s tempting to say that vanity is a subset of pride, but they are more like opposites; pride is self-regarding, while vanity is about what others think. Vanity’s psychological real estate is found, instead, somewhere between envy and greed. Adam Smith taught us that greed, properly organised, gets dinner on the table in a way kindness can’t. Similarly, vanity, channelled the right way, helps bring order and joy to social life.

But how much is too much? Moving from the 18th century to the 21st, I think cologne is a good example. A bit is very nice, but its effect has to be nearly subconscious in order to work properly; you don’t want a stranger on the subway asking, “Is that Acqua di Parma?” Smelling good, like all matters of masculine style, is about exercising restraint.

Outside of smell, the boundary between too much vanity and not enough is harder to track. When a man is trying too hard to look good, we all see it, and it’s damning. Jeff Bezos’s move from geek to sleek, for instance, is pure cringe; for an example of a flamboyant dresser who knows where to stop, consider the Fiat heir Lapo Elkann. What marks the line?

Some general points stand out. I think the kind of vanity that makes men want to look younger than they are is the bad kind. Don’t get me wrong: at almost 55, ageing pains me. Wrinkles are spreading, I have permanent bags under my eyes. Jowls incoming. It stinks. But time passes and digging in your heels makes you a fool. I want to look good for my age, not younger than my age (my ageing gracefully role model: David Hockney).

And to be clear, I’m talking about men here. Women face a different set of challenges that men can understand only dimly; others can write the commentary on that more complex game.

Bryan Johnson, the Silicon Valley longevity nut job, recently tweeted that “your face is money > important for mate selection, career progress, social standing, how you’re perceived, self confidence > youthful skin is good > old skin is bad.” We are constantly scrolling by this witless Darwinian argument (generally made by people who look ridiculous): looking good is never anything more or less than a form of power. What is good, by way of looks and everything else, is dominance, online “alphas” tell us. Humour, self-knowledge and proportion must bend the knee; happiness, too (what’s the point of that stuff?). There is a word for people who, despite the collective experience of a thousand generations of humanity, actually believe this stuff. The word is “ugly”.

Power also has a role to play in the good kind of vanity; how could it not? Raw physical beauty is a form of power some of us have and some don’t. But it is not something that floats around independently, like a bank account balance or a test score. Presentation and context matter, and once again restraint — the sense of something held in reserve — is the defining feature of good style. Think of muscly bodies. They look great, and the best way to show them off is to conceal them. Leave the viewer wanting more. Suits cut to emphasise the big shoulders of strong men look terrible. Athletes need soft tailoring.

In our culture, of course, the core form of power is money, not muscle. But the lesson is similar. A watch can be beautiful, but the more expensive the timepiece, the simpler and more understated its styling should be. Yes, there are moments when it makes sense to go all out — but not many of us go to coronations, or the Met Gala.

So much for the ceiling, what about the floor? There are, in theory, people who survive without vanity, at least about their appearance. But we can’t all be Bernie Sanders, and a world of Bernies wouldn’t be much fun. The good side of vanity helps us pull ourselves together, and remember how we look through other people’s eyes. So the best rule, paradoxically, might be: be vain enough to make other people happy.

Follow uson Instagram and sign up for Fashion Matters, your weekly newsletter about the fashion industry