Harris’s ad underlines her record as a prosecutor, while Trump’s accuses her of wanting ‘open borders’