Indeed, there are individuals such as Don Piper (author of "90 Minutes in Heaven") and Bill Wiese (author of "23 Minutes in Hell") who claim to come back to life after dying. This is event is known as "revivification."Of course, I cannot verify or prove whether their claims are true. Likewise, I don't know WHY these events happened to them. Is it possible that God is taking people to heaven and/or hell, and then sending them back in order to deliver a message to us? Yes. This idea does not seem to contradict the Bible. The Apostles Paul and John both received visions of heaven and hell, in 2 Cor. 12:1-6 and Revelation 21-22 respectively.
As with any literature, however, be sure to test it according to Scripture. If you hear of an account of someone coming back from the dead, compare what the author says with the Bible (1 Thess. 5:21-22). If the vision is truly from God, it will not contradict the Bible. Moreover, different visions from different people should not contradict each other. My advise is to be skeptical of such claims, and focus on God's Word. Scripture is the primary way God has chosen to reveal Himself to us - not through visions of heaven and hell.
[Answered by Pastor HM]