The premise is historically inaccurate. There is no evidence Mexican troops "felt justified" in attacking Zachary Taylor's forces. The 1846 outbreak of the Mexican–American War stemmed from:
Mexican perspective: Defending sovereign territory against an army occupying land Mexico considered its own. General Mariano Arista's official reports frame it as repelling invasion. "Justified" implies a moral/legal calculus—Mexican leadership saw it as defense of national integrity. The U.S. saw it as defense of annexed territory. Two sovereign claims; no shared framework. The war resulted in Mexico losing 55% of its territory (Treaty of Guadalupe Hidalgo, 1848).