Most people are surprisingly bad at standing up to authority, even when they have a moral conflict. In one recent study, for example, researchers asked people to shock other people 60 times. When offered money, most people refused to consistently shock someone else. But when they were told they had to by the research leaders, almost everyone did. 

The BBC explains you what is going on in the brain in a situation like this: