play into someone’s hands

Meaning 1
to succumb or fall into a planned trap
Sentence 1
When the arrogant gambler put all his money on the line holding a flush, he played into the opponent’s hand who held a royal flush.
Meaning 2
to give someone an advantage
Sentence 2
If you reveal the missile sites, you’ll play into the enemy’s hands.