Gandalf is an angel in Middle Earth, sent by the God of Middle Earth, to guide the consciences of people, and only use his powers as a last resort.
So he is like an angel doing God’s work, such as an archangel.
Harry Potter unfortunately, if you read Jk Rowlings latest book ‘A History of Magic’, draws strongly on occult history. And if you read her latest book mentioned, about where she got the ideas for Harry potter, much of it is taken from actual occult history.
Such as Divination is a class in Harry Potter (which is forbidden by the bible),
Satanists have said that since the Harry Potter books and movies, requests to join them, by children, went up by 300%.
Harry Potter is just a story but unfortunately SOME people cannot just leave it as fiction but investigate actual spells/ occult,
Criticism against the books also comes from one of the official exorcists of the Archdiocese of Rome, Gabriele Amorth, who believes that, “Behind Harry Potter hides the signature of the king of the darkness, the devil.” He further told the Daily Mail that the books make a false distinction between black and white magic, while, in reality, the distinction “does not exist, because magic is always a turn to the devil.” Amorth believes that the books can be a bad influence on children by getting them interested in the occult