If you are ever placed into a situation psychologically and ethically analogous to these experiments--a possibility that in a militarized and capitalist world it seems wise not to dismiss--and you want to acquit yourself better, what can you do? One option is to just have faith that you'll turn out to be an exceptionally good person. But that doesn't seem to me to be much wiser than assuming that no one with authority will ever encourage you to do something wrong. I think a better option, per the OP, is to think seriously in advance about what kind of situations might arise in your actual life and how you would like yourself to respond.