That is true some of the time. It isn't as true say if you have to expose evil or you have to prevent or punish evilness. This saying only applies if you look for evil, or expect evil to happen or you dwell on the negative all the time. If you think about the devil and there is no need to, then he'll look straight back at you.