How to use limit rotation...im stuck

hi community! So i was trying to make a limit rotation using constraints on this CCTV. this CCTV should be limited from left position rotation, to right position rotation.

How to use this limit rotation? Im kinda new. The Question is in the video too, take a look for more clarity of my question :

Well-- Euler angles. They’re not as easy as they seem at first.

If you only want an object to rotate in a single axis, and that object has an XYZ Euler transform mode, start by aligning the X axis of the object with the axis in which you want it to rotate. You can see its axes by enabling the display of axes on properties/object data/viewport display. You can change the orientation of its axis by enabling “affect only: origins” on sidebar/tool/options in object mode, and then rotating it.

Once you have the X axis aligned with the axis of rotation, proper rotations will never have any Y or Z values-- they’ll always be zero. You can safely limit the rotation to ± some X value and 0,0 for both Y and Z.

If you’d rather not change your object’s axes, you can parent it to an empty that has been placed and rotated appropriately, and animate and constrain that empty instead.