When the going gets tough, the tough get going (Prov.)


Quando il gioco si fa duro, i duri iniziano a giocare (Prov.)


Meanings
Difficulties stimulate capable persons

Origin
The first “tough” in this sentence means difficult, while the second one means strong-minded and determined