Can also say
If you do what you want to do, you are not free, but if you do what you should do, you are truly free.
This famous saying mainly advocates "free will".