Another interpretation. The Holy One, blessed be He, said to him: Do not let your spirit grow coarse within you because I have called you a god. You are a god only over Pharaoh. And likewise it says, "And God spoke to Moses and said to him: I am the LORD" (Exodus 6:2). You are a god only over Pharaoh, as it is said, "I have made you a god to Pharaoh."
Why Moses Was Made a God Only to Pharaoh
Yalkut Shimoni on Torah 180:4
דָּבָר אַחֵר. אָמַר לוֹ הַקָּדוֹשׁ בָּרוּךְ הוּא, לֹא בִּשְׁבִיל שֶׁקָּרָאתִי לְךָ אֱלֹהִים תְּהֵא רוּחֲךָ גַּסָּה עָלֶיךָ, אֵין אַתָּה אֱלוֹהַ אֶלָּא עַל פַּרְעֹה. וְכֵן הוּא אוֹמֵר (שמות ו, ב) "וַיְדַבֵּר אֱלֹהִים אֶל מֹשֶׁה וַיֹּאמֶר אֵלָיו אֲנִי ה'", אֵין אַתָּה אֱלוֹהַ אֶלָּא עַל פַּרְעֹה, שֶׁנֶּאֱמַר נְתַתִּיךָ אֱלֹהִים לְפַרְעֹה.