give as good as one gets - Phrases/Idioms
The American Heritage® Dictionary of Idioms by Christine Ammer. Copyright © 2003, 1997 by The Christine Ammer 1992 Trust. Published by Houghton Mifflin Harcourt Publishing Company. All rights reserved.
Return in kind, retaliate, as in In an argument Laura can give as good she gets, or Don't worry about the bullies in Bobby's class—he can give as good as he gets. The general idea of this expression dates from the late 1600s, but the precise wording was first recorded only in 1952.