What is the meaning of [Don’t bite the hand that feeds you.]

Don’t act badly toward the person who has helped you or from whom you derive some benefits, for you may lose those benefits in future.

Example: Don’t bite the hand that feeds you by talking ill of your mentor for such a small thing. If he distances himself from you or talk bad about you, it can hurt you bad.