The difference is in the awareness of the "fraud". A religious teacher truly believes in the existence of god, therefore they're not a fraud.
It seems you need these criteria:
1. The fraud knows they are duping the subject.
2. The subject truly believes the fraud is real.
In the magician example, 2 does not hold.
In the religion example, 1 does not hold.
Of course, there are _some_ frauds in religious circles. But I don't think the average church minister is rubbing their hands together in anticipation of the next donation.