Rangers beat M's, avoid sweep in Seattle