Rangers edge A’s to end 4-game skid