LOGAN, Utah—Utah State hit some tough shots to get to overtime against San Diego State. The Aggies just couldn't close the deal against seventh-ranked Aztecs.

Xavier Thames scored 31 points, including 10 in overtime, and San Diego State turned back Utah State 74-69 Saturday night.

Spencer Butterfield scored 19 points for the Aggies (12-7, 2-5 Mountain West), Jalen Moore added a career-high 16 and Preston Medlin had 12.

Butterfield hit a 3-pointer over two defenders with 2.5 seconds left in regulation to force overtime.

"Preston was covered and I came over and got a decent look," Butterfield said of his shot, described by coach Stew Morrill as "a miracle shot."

Butterfield drained another 3 to put Utah State up 62-61 with 3:03 left, but Thames put a halt to the rally.

He nailed a jumper that put San Diego State ahead for good with 1:50 remaining and made a 3 with 49.6 seconds left to make it 66-62.

SDSU shot 8 of 10 on free throws in the final 38.9 seconds to seal the victory.

"Our guys played really hard and we hit some big shots," Morrill said. "We gave ourselves a chance to win, but we've got to find a way to win games like this in league. It's a tough loss."

Moore, a freshman who started because Kyle Davis was slowed with a kneecap injury, was 4 of 7 from 3-point range.

"Jalen played great. He had to be out there for us, and he was active and athletic," Morrill said.

The Aggies shot 9 of 18 from long range, while SDSU was 4 of 15.

Josh Davis had 12 rebounds and six points for San Diego State (17-1, 6-0) and Winston Shepard scored 10.

The Aztecs are 30-11 in road games since March 2011, the third-best road record in the nation during that span. San Diego State is the first ranked team to visit Logan since March 2007, when USU upset 10th-ranked Nevada in overtime.

"This was a good team win," Thames said. "That's what championship teams do. We stuck with it."

The Aztecs went 5 1/2 minutes without a field goal down the stretch before Josh Davis tied it at 52 on a jumper with 3:27 left. Davis put San Diego State back in front when he scored again to make it 55-54 with 1:50 remaining.

San Diego State appeared to be in good position to escape with a close win in regulation after Thames made two free throws with 16.1 seconds left. Butterfield changed that with his 3 from the right wing that tied it at 57.

After a timeout, Thames corralled a long pass at the other end but missed a tough jumper at the buzzer.

"They made up for all the shots they didn't make against (UNLV) against us," SDSU coach Steve Fisher said. "They made some hard shots and they made some open shots."

Utah State had a difficult time taking advantage of San Diego State's poor first-half shooting (10 of 30). The Aztecs used a smothering defense to pressure USU into seven turnovers before halftime.

San Diego State also dominated the glass, holding a 10-5 edge in offensive rebounds during the first half and outscoring Utah State 13-6 in second-chance points.

"We've done that before—not shot the ball well," Fisher said. "But we hung in with our defense. They carved us up a bit with their sets and their precision and their offense."

Utah State started mounting a rally toward the end of the half. Butterfield scored with 59 seconds left to trim SDSU's lead to 28-24 going into the locker room.

"We'll find a way to pull together. If you lose, you have two choices. You can lay down and give up or you can keep fighting," Butterfield said. "And this team will keep fighting. We'll need to bounce back with energy next Tuesday."

USU faces New Mexico in a nationally televised game Tuesday at 9 p.m. MST.