that situation merely highlights the situational nature of morality. the devil is in the details often times. this is another grip i have with religious mandates, they are always in rock solid generalities, when often, what is moral is time or situationally dependent.
should you jump into the river? idk, depends on a lot of things. how far out are they? how well do you swim? how rough is the water? is there any other way to help them? how old are they? how capable of a swimmer are they?
but if there was a religious mandate on the topic it would be something like: always save people in rivers
for example: abortion
should you get an abortion? idk, depends on a lot of things. this is a fun one because even the religious are split, based on situation of conception, danger of the pregnancy, etc etc etc. and even though the religious disagree, they still claim that there opinion is gods!
this is just another gripe about religious based morality. i have plenty if you want more