Shanks is pretty consistent. He gives people the option of fighting.
Marineford- keep doing what you are doing and you can fight me and my crew. Or leave
Wano- keep doing what you are doing and you can fight me and my crew. Or leave.
Elbaf- keep doing what you are doing and you can fight me and my crew. Or leave.
Ryokugyu deliberately went after Luffy when he was weakened. Shanks said fine, do that if you’re that frightened of what he could become, but I’ll step in.
Kid’s started attacking his crew, Shanks said he won’t let Elbaf become a warzone, so he’s told him to clear off. And also leave his Road Poneglyphs, because he is still a pirate and Kid’s made a mistake in messing with him.