If you’re a pharaoh that means you’ve got a great deal of power and not that many checks on said power. If you tell someone to do something, they should do it.
In chapter one of Exodus the pharaoh has a message for the midwives who are there at the deliveries for the Hebrew women. He’s not happy that the people of Israel were increasing in number and he feared them. So his idea is to control their population.
“When you serve as midwife to the Hebrew women and see them on the birthstool, if it is a son, you shall kill him, but if it is a daughter, she shall live.”
This is not a suggestion. It is an order. But what do the midwives do? While they almost certainly feared the pharaoh, they valued life and they feared God more. They did not do as they were commanded, instead allowing the male children to live. They deceive pharaoh to cover up their actions and it says in verse twenty that “God dealt well with the midwives.”
These women knew who was truly king in the land and they protected life even in the face of a pharaoh who could have ordered their execution.