English has a phrase for the same idea, and it is shorter. Quit while you are ahead.
Chinese built a whole scene around it. An archer, a willow tree, a stranger in the crowd, and a warning that arrives one second before the applause stops.
The Chinese idiom 百发百中 (bai fa bai zhong) means a hundred shots, a hundred hits. It is used today as the highest kind of praise for a person who is always right, always accurate, never off target.
Which is strange, because the first time anyone said it, it was not praise. It was advice to stop.
This Chinese fable comes from the Strategies of the Warring States, and the man who said it never met the man it was meant for.

Start with the long way round.
By the fourth century BC, the state of Qin in the west had become the strongest thing in China. Its best general was Bai Qi, a man who won by arithmetic. He counted supplies, distance, and the number of enemy heads his plan would produce, and then he executed the plan.
He had broken the armies of Han and Wei at Yique and killed the Wei commander Xi Wu. He had gone north into Zhao and taken the towns of Lin, Lishi and Qi. The list of his victories was getting long.
Now Qin prepared to attack Daliang, the capital of Wei.
Daliang lay to the east. Qin lay to the west. Between them sat something very small: the royal domain of Zhou, the ceremonial heart of the old order, where the descendant of the founding kings still held the title Son of Heaven.
Zhou had been shrinking for centuries. By this point it had split into two tiny principalities, Western Zhou and Eastern Zhou, ruled by two men who did not get along despite sharing an ancestor. The ruler Su Li went to see was the lord of Western Zhou, whose capital sat directly in the path of any Qin army marching east.
If Wei fell, Zhou would have nothing left between itself and Qin.
Qin could not be stopped by force. Zhou had no force. So Su Li proposed a different approach. Do not block the army. Work on the general.
And do not speak to the general directly either, because a messenger from a tiny state has no standing with a man like Bai Qi. Send someone to tell him a story.
The story went like this.
In the south, in Chu, there was an archer named Yang Youji. He could stand a hundred paces from a willow tree and shoot the leaves. Not the trunk. The leaves. A hundred shots, a hundred leaves.
A hundred paces then was about a hundred and forty metres. At that distance a leaf is a green smudge, and the wind moves it.
The crowd behind him made the noise a crowd makes when it has just watched something impossible.
Then a stranger walked past.
He watched for a while and said: good shooting. He could be taught to shoot.
Yang Youji lost his temper.
He said: everyone says I shoot well. You say I can be taught. Then why not take the bow and shoot in my place?
The stranger answered, and this is the part that survived two thousand years.
He said: I cannot teach you the left hand and the right hand. I cannot teach you how to hold the bow or how to draw the string.
I can only tell you this. You shoot willow leaves, a hundred shots, a hundred leaves. But you do not know how to stop and rest while it is going well.
In a little while your breath will shorten, your strength will fail, your bow arm will drift, and your arrows will fly crooked.
Then one shot misses. And everything before it is worth nothing.
The idiom is born in that sentence, and the phrase standing right behind it is 前功尽弃, all previous work thrown away.
The two belong together. Chinese keeps putting fullness and emptiness in the same breath, because anything built by winning in a row can be erased by one loss.
Now the stranger stops talking about archery.
The message turned to Bai Qi. You have broken Han and Wei. You killed Xi Wu. You went north and took Lin, Lishi and Qi. Your merit is already very great.
Now you will take the Qin army out through the passes, across the land of the two Zhou, through Han, and then attack Daliang. If this one campaign fails, all of it is gone.
You would be better off claiming illness and staying home.
Sit with how rude that is.
It does not say you will lose. It says you do not need to win again. For a man who has spent decades winning, that is worse. Merit, in his world, is not a savings account you draw on. It is a ladder, and stopping on a ladder means going down.
What Bai Qi answered is not recorded. The story breaks off there, which is itself a kind of answer.
His end, years later, reads like a footnote to that missing reply.
At Changping he destroyed the army of Zhao and buried its surrendered soldiers, and his name reached its ceiling. After the ceiling, things turned. He quarrelled with the chancellor Fan Ju. He disagreed with the king about attacking Handan. The king ordered him to go. He said the campaign could not be won. Fan Ju came to ask him. He still refused.
Then he claimed illness.
The Records of the Grand Historian is careful here and does not say whether the illness was real. It says only that he was stripped of rank, sent to Yinmi, and that ten li outside the west gate of Xianyang, at a post station called Duyou, he was given a sword and told to use it.
Before he died he said: I deserved this. At Changping, the soldiers of Zhao surrendered, hundreds of thousands of them, and I tricked them and buried them. That is enough to die for.
The advice from years earlier had come true in a way nobody intended. He was not destroyed by a lost battle. He was destroyed by not being able to say the word enough.
Now go back to the archer.
In the Strategies he is a proud man who cannot take a hint. But another book, the Zuo Commentary, records a different day in his life, and it complicates the picture.
At the battle of Yanling, before the fighting, Yang Youji and a comrade named Pan Dang competed at armour piercing. Pan Dang shot through seven layers of leather plate. Yang Youji shot through seven as well. Both were delighted with themselves.
The king of Chu saw it and was furious. He told Yang Youji that he would die of his own skill.
Then he called him over and gave him two arrows, and sent him to shoot a Jin commander named Lü Qi.
Yang Youji went. One arrow took Lü Qi in the neck. The man fell forward over his bow case.
Yang Youji carried the second arrow back and reported.
Two arrows given, one used. He did not take a third shot at anything that day.
So the man who could not stop, on the day it mattered, stopped with an arrow still in his hand.
That is the real weight of the four characters. Not the hundred shots. The breathing space after the hundredth.
Skill is being able to hit.
Fate is knowing when not to shoot.
We use this Chinese proverb now for the first half only. We say it about people who are accurate, reliable, never off. As if never missing were a pure good.
But the phrase was invented by a stranger in a crowd, aimed at a man who had never missed, and it meant: you are in the most danger right now.
Because the bow arm drifts. Because the arrows bend. Because you have won so much that other people are waiting for the one that goes wide. Because a single miss will make them retell all hundred.
The stranger walked on. The story does not give his name, and does not say whether the archer listened.
The Strategies of the Warring States handed the speech to a lobbyist, and the lobbyist handed it to a general.
The general did not listen.
Twenty three centuries later, we still use the four characters to praise people.