The Zondervan Academic blog explains the significance of words of Paul that are often taken out of context:
Just before Paul says, “I can do all things through Him who gives me strength,” he recounts some of the different circumstances he’s found himself in: he’s been hungry and well-fed, he’s been in need and he’s been well off, and he’s learned to be content, no matter what his circumstances are.
Paul isn’t juxtaposing these circumstances to suggest that one is better than the other. He’s using these extremes to highlight that he understands the range of human experience, and that he understands the challenges that come with each position. He isn’t a rich person telling a poor person to be happy with what they have (or vise versa), and he’s not sitting there on a full stomach telling hungry people to get over it.
He’s saying that no matter what your circumstances are, you can learn to be content. How does he know? Because he’s tested it, and he’s proved it. How does he do it? That’s where verse 13 comes in.
If you read the NIV translation of verse 13, you’ll notice an important distinction from most other translations:
“I can do all this through Him who gives me strength” (emphasis added).
When we read “this” instead of “things,” it’s a lot more clear that the passage is referring to specific things—all the things Paul has been talking about—not “all things” in the sense that we can do anything.
… This verse is so incredibly popular in its distorted form in Christian fundamentalist circles, appearing on mugs and bumper stickers and t-shirts. It illustrates why I think it so important to not allow fundamentalist claims to be “Bible-believing Christians” to go unchallenged or be accepted at face value. They have a viewpoint adorned with biblical language taken out of its context, which is used sometimes to construct and sometimes merely to decorate their worldview which is in no sense simply that of any of the biblical authors, much less of all of them (as though they all agreed). Perhaps focusing in on this one example can help make that point. It is an important one, because unless challenged, what is said in the meme below often proves to be true: Christian fundamentalists can do all (kinds of) things through verses taken out of context.