They say that good conduct comes along with an education. The education turns you into a good human being.
Let me tell you that, Duryodhan and Ravan both had the knowledge of Shastras. They had the best teacher/Guru in their respected times.
Even though they had great knowledge, they did few of the worst deeds. This implies that only education and knowledge is not the solution for wrongdoings or corruption.