If we are destined, do we have free will? Even if god gives it, he knows the future, does it automatically mean we won’t ever contradict his future vision?

A man was sitting on the branch of a tree sawing between where he sat and the trunk of the tree.
A man came along and looked up. “Hey,” he said. “If you continue to saw that branch like that it will break and you will fall to the ground!”
The man in the tree said, “Go away, I know what I’m doing!”
The man on the ground walked away and the man on the tree continued to saw. Soon the branch broke and the man fell to the ground. He stood up, looked at the branch, and in total amazement went running down the road looking for the other man. “You must be psychic! You were able to see the future!”
To see the future does not mean you control destiny. We have a choice. God just knows that if you continue on your current path the branch will break and you will fall to the ground. So stop it.
Someone knowing the future does not mean they control destiny.