Hitting partner because he was going to end his life in front of me

Is it wrong to hit your partner like a slap in the face if they are standing right in front of you with tablets in their hands and taking more as the seconds go by and won’t let them go no matter how hard you try to take them off them.

Is resulting to hitting them in the face to make them stop taking them and drop them ok?