1. Think twice before acting is a famous saying of Confucius.
2. Think three times before you act is a Chinese vocabulary. Think three times before you act comes from "The Analects of Confucius Gongye Chang": Ji Wenzi thinks three times before you act. When the Master heard about it, he said: "Again, that's enough." The meaning of this sentence is that you must think twice before taking action.
3. When the ancients said "three", they often did not refer to the exact number of "three", but to express a large number of times. But here it is relative to "Zai", so it is still regarded as a definite number. It means to think carefully before doing something.