This is a play on words. The word "pays" means the speaker is rewarded for doing a certain activity but "pays" sounds like "paste" wich is another word for glue.
When you use glue in class it paste to be careful .