Would Mexico have viewed an advancement of their troops north of the Rio Grande as an invasion of the US? Why or why not?

HELP ASAP