Sometimes, it is not hard to figure out the right thing to do. When a tyrant tells you to do something wrong, resist.
The midwives did it, refusing to kill Hebrew babies. Why? Because they feared God (Exodus 1:17). Regardless of your theological stance, one has to acknowledge that one path to bravery is the understanding that there is something larger and broader beyond whatever a human tyrant demands that commands respect for values that go beyond the mere will of a despot.