The legal system considers the extent of damage inflicted, categorizing offenses under Section 435 IPC based on the severity of the harm caused.