I don't think God often takes someone out of their body against their will, but the phrase "caught up in the Spirit" comes to mind as well. Your closeness to God at the time of these things happening and the nature of your experience while "away" might tell you a lot.
That's a relief to know because the first time that I felt myself being lifted up from my bed, I was lowered back down (ever so gently though) after feeling the tiniest bit of apprehension over what was happening.
I didn't even say no, because the whole thing felt (pardon the pun) uplifting and there was a male voice outside my building reciting/singing praises to God in a very interesting sounding language (which was very comforting). But still, my paranoid mind had to think "what if this isn't from God though?" and after I had thought that and felt a tinge of fear as a consequence, I knew that I was going to be put back down because of that, and I was.
I was kicking myself over being so distrusting after that.
Demons can't praise God, right? Or can they?
Most of the travels happened after I became a strong believer in God and strived to follow Christ's example
BUT a few years ago I had tried
meditation a couple of times (worst decision of my life), never pursued astral projection though, so I was a bit in a dilemma over this.
I think carrying out steps to astrally project can only lead to demonic experiences
I think that might be the answer to this because I've been hearing many people that are now Christians telling stories about how
learning how to lucid dream has opened up doors to dark things that they have trouble shutting up.
For me, almost all of my dreams have always been lucid (until several years ago when I stopped being their only architect) but there hasn't been any negative consequence in my case because I don't think that lucid dreaming in itself is bad, it's the reason why that happens, because they choose to pursue such a foolish endeavor for selfish reasons.