πολλῷ πόνῳ

From LSJ

καλῶς δρῶν ἐξαμαρτεῖν μᾶλλοννικᾶν κακῶς → I would prefer to fail with honor than to win by evil | I prefer to fail by acting rightly rather than win by acting wrongly | Better fail by doing right, than win by doing wrong (Sophocles, Philoctetes 95)

Source

Greek > English (Woodhouse)

at a stretch, by an effort, with great effort