How to do please?

it’s my first game i thought i did good and take stones but then he takes stone so i lose and resign how to do so he don’t take stone and i dont lose my game??

I’m unsure what you mean, you are not forced to resign if your opponent takes a stone, that game you were clearly in the lead