You must make a choice from two competing options. ‘Both way’s refers to two competing desires. (Compare to Have your pie and eat it too.)
“My wife wants a divorce, but she also wants me to continue to support her. I told her she can’t have it both ways”