The spirit mentioned here is not the Holy Spirit. This “breath of the Almighty” is a separate and distinct spirit that enables people to have qualities in God's image while remaining merely human. It enables communication to take place, even between God and humans. God, however, is not the only being who can communicate with and to us. Of course, other humans can communicate with us, as can angels. Such communication is not only verbal, but it can also be through the influence of other spirits and attitudes, be they evil or righteous.
A living spirit possesses the power to sway another's attitudes and conduct. A spirit that places the desire to sin in a person's mind can be resisted, but if his guard is not up, he can allow that influence to enter his heart and become part of him. This is what happened to Adam and Eve when Satan came calling to influence them toward the desire to take of the Tree of the Knowledge of Good and Evil.
As long as Adam and Eve were only in the presence of the holy and righteous God in the Garden of Eden, sin was not a problem because God's communication with them was entirely righteous, encouraging, and positive. But when the personification of evil showed up, they did not resist his appeals to join with him in sinning against the holy God. Their spirits picked up on what he was communicating to them, and they joined him in sin.