A man trying his hardest to climb up a rope.
The man climbing the rope is escaping a swarm of bed bugs.
to climb is different than escaping
If a man is trying to climb up a rope he is not climbing the rope.
in the first sentence the man is trying his hardest while the other is climbing the rope and escaping a swarm of bed bugs.