Sometimes, an infinitive clause can modify all the actions preceding it. Sometimes, an infinitive clause only modifies some actions preceding it.
This is all determined by the context. Am I right?
The bold text in the examples is the actions I think are modified by infinitive clauses.
(1) She jumped ropes, lifted weights, and consumed a lot of protein to bulk up her muscles.
(2) My friend and I woke up early and showed up at her home and gave the gift to her to surprise her.
(3) The murderer entered the house and put a pillow on the old man's face to stifle him.