What is the meaning of [Pride comes before a fall]

The proverbial saying ‘pride comes before a fall’ is a warning that haughtiness and hubris leads to failure and loss.
The proverb ‘pride comes before a fall’ was originally ‘pride goes before a fall’ and this variant is still commonly used.

In fact, neither version is exactly as the proverb was originally written. The line comes from the Bible and is found, appropriately, in Proverbs 16:18. This is the current King James Version text:

Pride goeth before destruction, and a haughty spirit before a fall.