Only in complete absence of recognition of Hashem and His ways can one treat others the way Pharaoh treated the Israelites. Had he acknowledged the Lord, Pharaoh would not have been able to treat them that way. Therefore, God emphasizes (Exodus 7:5) that the purpose of the ten plagues is to prove to the Egyptians and the entire world that He is the one and only omnipotent God.