Why would God tell us to seek after something, and then turn around and allow us to receive something from the devil? He doesn’t.
On the contrary, He knows how to give good gifts to those who ask. Seeking spiritual gifts will NOT open you up to demonic influence.
Opening yourself up to demonic influence will open you up to demonic influence, not seeking God Himself, who withholds no good thing from them who ask and upon whom there is no shadow caused by turning.