ARLINGTON, Texas -- Adrian Beltre and the Texas Rangers can now focus on what may be their most important series of the season.
The AL West-leading Houston Astros are up next.
Beltre homered twice to drive in five runs, Shin-Soo Choo also went deep and the Rangers wrapped their series against Oakland with a 12-4 victory Sunday. That kept them within 1 1-2 games of Houston, which opens a four-game series Monday in Texas.
"Obviously, we want to face the team that is in front of us," Beltre said. "We're looking forward to getting our chance to climb up to where we want to be."
Texas (75-67) was on the verge of being only a half game back, but the Astros (77-66) rallied with five runs in the ninth inning Sunday for a 5-3 victory at the Los Angeles Angels.
"I think we've got plenty of energy. ... Today was a grind," manager Jeff Banister said after the Rangers' longest nine-inning game this season, three hours and 52 minutes.
"We talk about not looking ahead, not getting ahead of ourselves and staying focused on today. We have done a tremendous job at that," he said. "But they're well aware of the next four days."
Danny Valencia had a two-run triple for Oakland (61-82), which became the first American League team to clinch a losing record.
[RELATED: Canha, Valencia power A's past Rangers]
The A's had gone to the playoffs each season since their last losing record in 2011. They won division titles in 2012 and 2013 before being a wild-card team a year ago.
Choo put the Rangers ahead with his 18th homer, a solo drive onto the hill beyond center in the first. He was on base for both of Beltre's homers, a two-run shot in the fourth and a three-run blast in the fifth that made it 6-0.
Rougned Odor added a three-run homer in the eighth for the Rangers, who stayed one game ahead of Minnesota for the AL's second wild card.
Rookie right-hander Chi Chi Gonzalez (3-5) went 5 1-3 innings for his first victory in the majors since a three-hit shutout at Kansas City on June 5. The Rangers used five relievers after that.
It was Beltre's 27th career multihomer game, his first since June 4, 2014. ... Oakland rookie catcher Carson Blair homered for his first career hit. ... The four homers matched a season high for the Rangers, who hadn't had a four-homer game at home since April 21, 2013.
Rangers: Robinson Chirinos is still bothered by soreness in his strained left shoulder. The catcher will see a doctor again when the inflammation subsides.
Athletics: Sonny Gray goes for his 14th win when Oakland opens a four-game series at the Chicago White Sox.
Rangers: Cole Hamels (9-8) was given an extra day of rest, which set the right-hander up to pitch the series opener against Houston. He is 3-0 with a 3.34 ERA in his last five starts.