Satan’s rebellion against God took place between the events of Genesis 1 & 2 and Genesis 3.
The first two chapters of Genesis present the narrative of God creating a perfect world (Genesis 1:31). That perfect world included angels. Genesis 3 introduces us to Satan, who appeared in the form of a serpent (Revelation 20:2). All that can be said with certainty is that Satan sinned against God at some point after God created a perfect world.
What a joy to know that Jesus defeated Satan (1 John 3:8) and freed us from his power.