“I hate the work of those who fall away.
It shall not cleave to me.
Perverseness of heart shall be far from me.
I will know nothing of evil.”
David seems to say that he hates the work of evildoers. They will not hang on to him. Any kind of perverseness of heart shall be far from him. He did not want to know any kind of evil.