Need help with clamping door rotations

Yeah i tried that before, my animation is all based on a timeline so i guess it wont care about collision against solid objects then, the door goes through it when i open using that way.