One who knows good and evil avoids vice and also becomes virtuous. Reaping the fruit of virtue (in future birth), he eventually attains Nirvana.