What is the meaning of [If you can’t beat ’em, join ’em]

MEANING If you can’t change someone’s behavior or opinion, sometimes it’s better or easier to do what they want to do
EXAMPLE “I told Mark that we needed to study, but he kept playing video games. Eventually I gave up and just played video games too. If you can’t beat ’em, join ’em.”