:salam2:
For starters Saudi Arabia isn't exactly the champion role model of Islam and what they do sometimes can not even be justified by Islam. However, Sharia does state that in the event of these crimes these measures can be taken, but it is important to stress that the qadi follow Qu'ran...