David knew that there were marla boundaries, and that these were more important than self-interest. he also had the faith that God was there somehow. The Ten Commandments are good examples of boundaries. Faith internalises them.
it takes strength to keep moral boundaries especially in the face of social & peer pressure – prayer time & faith can help me keep my moral boundaries & values.