How to clamp CFrame.lookAt to not exceed a conical angle?

Intuitively it should just not clip to the wall, there should be one cone only
same way ballsocketconstraint cone works