How to invert the rotation of an object

Hello,

I’m trying to rotate my sword from right to left but it goes through my character’s body instead of swinging it in front.
Any ideas about how could I invert the rotation? I’m pretty noob-ish.