How limit spring arm pitch during rotation?

Thank you so much, about what actually want to do, i am no sure i can explain it clearly by words, so i make a video, hope that can help to explain what i want.

and the similar question you just post, i will have a look right now, also waiting your reply, thanks again.