If one country fires a weapon into another country … isnโ€™t that an act of war?

Asking on behalf of Mexico.