UE4 Limit Camera Rotation

I tried to make it so you can only turn your camera in a certain rotation, and it kind of worked, but not very well
(See video)

Heres how I set up the blueprints

274085-bandicam-2019-04-13-10-48-48-002.jpg