Take this cheese in your hands when the rat approaches you. The rat will eat this cheese, and during this time you can escape.