God's people are not to practice any of the so-called Black Arts. Astral projection is a term occultists use for actually exercising the psychic faculties in order to project one's spirit into the spiritual realm and commune with instructors (i.e., spirits) on the astral plane. It is not the same thing as a NDE (near death experience). The occultists will claim they do it to receive further mystical teachings from the hidden masters of wisdom, and speak of the Great White Brotherhood. In reality, those are the devil's servants in the spirit world.
An NDE can occur because of an accident, trauma or shock to the flesh body. In 2 Cor.12, Apostle Paul remarked of how he was "caught up" to Paradise, and whether he was in the body, or out of the body, he didn't know, but God knew. Most likely that was when he was once stoned and left for dead when having preached The Gospel among unbelieving Jews (Acts 14 I think).
So there's a difference between a knowingly practice of astral projection vs. an NDE from an accident.
That either is a possibility comes from how God created us for this present world. Ecclesiates 12:5-7 reveals there is a "silver cord" that links our flesh body with our spirit, and when it is severed then actual flesh death happens, our spirit going back to God. Because of this "silver cord" link our spirit is able to return to our flesh body with an NDE.
God set the bounds for this world, and each of us born in the flesh are here to make our choice to believe or not believe on His Son Jesus Christ, or as His elect to work directly for Him so others might also believe on Him during this world. When we have spiritual manifestations in our life it is by God's Hand, not ours. We have no need to do mystical exercises like the occultists do in trying steal heavenly works. God's works through us are in the name of Jesus Christ, not through psychic exercises, repetitious prayer, chants or mantras, or meditation practice.