Adding on to if statement causes it to act differently

I was just confused on why it would do damage when it shouldn’t, not what I was trying to do. I have seen people use “and” for checking if a player can’t do something, but I think those were bool values and not strings