If you decided you were going to stay in the library, regardless of the rule you knew you were breaking, then that was the conclusion of your free decision making process. If you were then ejected from the library, by any means whatsoever, your free will was violated. You were forced by someone else to do something other than that which you wanted to do.
Do you not realize I could make the exact same argument
in the opposite way?
If you really wanted to stay in the library, you could overcome the stun gun's pain and stay, regardless of how badly it hurts. You still have the free will to respond (or not) to the pain. No one's actually making you leave the building, so your free will remains intact.
However, if you are physically tied up and dragged out of the building, then there's no way at all for you to do what you want to do. You were forced by someone else to leave the building, even though that wasn't your decision. Your free will has been stolen from you.
Besides, kiddo.. really... do you think people who break laws deserve have their free will so respected? I'm sure plenty of murderers would really prefer to not be in prison. Should their right to free will be taken into consideration?
You are really, really struggling here. Just give it up.