Equivalent Legacy Law: IPC Section 441
BNS Section 329 deals with the legal rules and penalties for CRIMINAL TRESPASS. In simple terms: Entering onto someone else's private property without permission to commit an offence, scare, or annoy them.
Real-World Scenario
"Jumping over a locked fence to enter a private backyard to steal or spy."