Passage
and all also who will to live piously in Christ Jesus shall be persecuted,
and all also who will to live piously in Christ Jesus shall be persecuted,
2 Timothy 3:10 And thou--thou hast followed after my teaching, manner of life, purpose, faith, long-suffering, love, endurance,
2 Timothy 3:11 the persecutions, the afflictions, that befell me in Antioch, in Iconium, in Lystra; what persecutions I endured, and out of all the Lord did deliver me,
2 Timothy 3:12 and all also who will to live piously in Christ Jesus shall be persecuted,
2 Timothy 3:13 and evil men and impostors shall advance to the worse, leading astray and being led astray.
2 Timothy 3:14 And thou--be remaining in the things which thou didst learn and wast entrusted with, having known from whom thou didst learn,
The verse centers on "live", "piously", "christ", "jesus", "shall", and "persecuted". It is saying that the verse draws attention to "live" and "piously", so its meaning should be read from those terms before moving to application.
The nearby context moves from verse 11's "the persecutions the afflictions that befell me..." into verse 13's "and evil men and impostors shall advance...", so "live" and "piously" belong inside that flow. In 2 Timothy context, the local focus is Christ, faith, and discipleship.
A plain takeaway is to answer the verse's own emphasis on "live" and "piously" with trust shaped by these words, not by a vague optimism outside the passage.