Rangers rallied from a five-run deficit to defeat the A's