遠慮 is holding back for somebody else's sake. Not because you don't want the thing — because taking it would cost someone else, or look grabby, or put your host to trouble. That is why 遠慮 and hospitality are welded together: the guest holds back by default, and the host's job is to override it.
Which is exactly why 遠慮なく means the opposite. Because restraint is assumed, it has to be explicitly cancelled — 遠慮なくどうぞ, don't hold back, help yourself. So the same word carries the refusal (遠慮します, no thank you) and the invitation (遠慮なく, please do). If somebody says it to you at a table, it is permission, not a warning.
謙虚 is modesty — a character trait. It is about how you rate yourself: 謙虚な人 doesn't claim more than they are owed. 遠慮 is a behaviour in a particular moment, about what you take and don't take. You can be 遠慮 without being 謙虚, and a genuinely 謙虚 person may accept your offer straight away.
我慢 is endurance, and has no consideration in it. It is putting up with something unpleasant — 痛みを我慢する, to bear the pain. 遠慮 always has another person in it; 我慢 only needs you and the thing you are gritting your teeth through. Choosing the wrong one turns thoughtfulness into suffering.