Dbacks extend Giants’ losing streak to 7 games with 5-3 win