There are ways for it to make its own decisions that contradict its prime directives other than through willpower. It could for example learn new directives, or a new interpretation of its existing directives.
Fully developed AI can take its own decisions and not just what it is "allowed to take".