Convert Rotation from World to Local space

How can I do this in a BP? I tried this but it doesn’t give out a correct rotation:

What I want is to clamp a random rotation in local space while also clamping it in world space. Local space clamp needs to be after world space clamp and I need to clamp 2 axis.

Curious if you ever found the answer to this?