The most effective way is to watch your snake very carefully while it feeds and intervene should you see the rat beginning to harm your snake. Unfortunately, at that point your snake is already hurt.
As for what size rat could do the most damage, logic says that the larger the rat, the larger the damage, but personally I wouldn't want any size rat biting one of my snakes.