The Gemara (Sanhedrin 74a) derives that one must give up his life rather than murder someone else because “who says that your blood is redder than his?” That is, who said you have more of a right to live than he does?
By this same logic, if Reuven were drowning in a river and Shimon could save him (lo sa’amod al dam rei’echa), but Levi tells Shimon that if he saves Reuven he will be killed, must Shimon refuse to obey? On the one hand, it’s only passive, rather than active; on the other hand, perhaps since Shimon has the ability to save Reuven it’s no different than murdering him if he doesn’t save him.