To "stay away from ghosts and gods" means to maintain an awe-inspiring attitude towards ghosts and gods, but don't be overly superstitious or worshipful. "I don't talk about the chaos in Machamp" means I don't talk about weirdness, violence, rebellion and ghosts and gods, because these topics are easy to cause unnecessary panic and confusion.
This sentence comes from the Analects of Confucius and is an expression of Confucius' attitude towards ghosts and gods. Confucius pays attention to education, secular success and happiness, and is unwilling to talk about strangeness, violence, rebellion and ghosts and gods. He thinks these are all evil and contrary to benevolence.