act on instinct said:
to say it’s about doing the right thing still leaves the actual moral underneath, what is the right thing to do?
The right thing to do is the thing that benefits all instead of one. Acting selflessly for the greater good.
That’s pretty much what the phrase means.