Can't figure it out if he just goes too far in teasing her or he just has no other intention other than fooling around with her.
It's probably that he likes to take the teasing to an extreme, otherwise he wouldn't have risked his life protecting her. Otherwise, he would be too inconsistent as a character.