Prevention is far better than cure.

Literal

Prevention [topic-は] cure-[than-に] by-far surpass.

Same proverb intensified with はるかに ('by far, vastly'). はるか ('distant, far off') is originally spatial; the adverbial はるかに gets repurposed as a scalar intensifier in comparisons. A useful adverb for written/formal emphasis.