Poor countries tend to stay poor not due to fundamental resource constraints but due to self-reinforcing loops of desperate crab-bucket like behavior, where everyone is cheating one another out of necessity (or culture). Broad collaboration and institution building is always the only way out of the hole, although the hole can be very deep and collaboration can be very costly until you get out.
You are right though, that for an individual living in a good collaborative system, often cheating is very effective, it's just that the system can only handle a certain amount of that behavior before it collapses.
As is discussed in the first scene of Plato's The Republic (surprisingly entertaining to modern tastes), the best play tends to be "to be unjust while seeming just". If people are going to be assholes, it is actually much better if they are discrete about it and keep a pretense of civilization. When people start acting conspicuously like assholes, out of a weird sense of honesty, that's when it propagates and the whole thing collapses, like a bank-run. It's an ancient story that we are still living.