Updated

Alex Rios doubled in the go-ahead run in the seventh inning, and the visiting Texas Rangers avoided a three-game sweep by posting a 4-3 win over the Los Angeles Angels of Anaheim.

Rios also opened the scoring with a solo home run in the first.

Elvis Andrus knocked in the other two runs for Texas, which snapped a three- game losing streak to remain 1 1/2 games behind the AL West-leading Oakland Athletics.

Alexi Ogando (6-4) picked up the win in relief of Nick Tepesch. The Rangers starter allowed two runs on four hits in 3 1/3 innings, striking out five and walking one.

Andrew Romine hit a two-run double for the Angels, while starter Jason Vargas was in line for the win before giving way to the bullpen. Vargas worked six innings and limited the Rangers to two runs on six hits with eight strikeouts.

"Jason did a great job. He needed a lot of pitches to get through six. He left with the lead but we couldn't hang on," lamented Angels manager Mike Scioscia.

Buddy Boshers succeeded Vargas and issued a one-out walk to Leonys Martin in the seventh. Ian Kinsler then greeted Michael Kohn (1-2) with a ground-rule double before right fielder Kole Calhoun made an incredible diving grab to rob Andrus. Martin was still able to tag and score the tying run, however.

Rios followed with a flare that was just out of center fielder Mike Trout's reach.

"I put a good swing on it," Rios said. "I hit that blooper in the right spot that Trout just missed. Hopefully this win will get us going again."

The Angels stranded the tying run at third in the ninth before being retired in order in the ninth by Joe Nathan, who picked up his 39th save.

Calhoun tied the game at 1-1 with a leadoff homer to right, and Los Angeles went up 3-1 on Romine's double in the fourth. Andrus singled home Martin an inning later.

Game Notes

Both teams had nine hits and left eight men on base ... The Rangers improved to 11-4 against the Angels this season.