Cain solid in Giants' 6-2 win over Rangers