An idiom for taking advantage of something which gave you the right to take advantage in the first place

Can someone suggest an idiom which means - taking advantage of something, which gave you the right to take advantage in the first place?

I know this isn't clear, but it's something like - Shooting a person in the head when it was that person who taught you how to use a gun. Or like misusing freedom of speech to defame your own country when its the country who has given you the right to free speech in the first place!


Solution 1:

Consider bite the hand that feeds you

  1. to treat someone badly who has helped you in some way, often someone who has provided you with money

  2. To repay generosity or kindness with ingratitude and injury

[The Free Dictionary]

Solution 2:

The Bible has this expression. Proverbs 17:13:

English Standard Version

If anyone returns evil for good, evil will not depart from his house.

International Standard Version

The person who repays good with evil will never see evil leave his home.