Move heavy jars and cans to lower shelves, give open shelves a way to restrain items, and use positive latches on cabinets whose contents can spill out. Treat the shelf itself and the items on it as two separate problems. A front lip will not stop a freestanding rack from tipping.
Start where falling items would trap you
Stand at the doorway and look at what can land in the walking path. Make that rack or cabinet the first one you address. Move glass jars, full water containers, and dense cans down from top shelves. Put light soft items higher. Keep fragile items away from shelf edges and don't stack containers above the restraint.
Match the hardware to the cabinet or rack
For open shelving, consider purpose-made lips, rails, or restraints appropriate for the shelf and what it holds. For cabinet doors, choose latches that positively catch rather than assuming the existing door will stay closed. Anchor freestanding units to a suitable structural surface using the manufacturer’s instructions; wall construction matters, and renters should coordinate with their landlord. Do not improvise a mounting point into an unknown wall.
Run a simple walk-through after the change
Close each latch and tug lightly to make sure it caught. Check that the lower load is within shelf ratings and that the exit still opens fully. Example: move a row of jars to a lower restrained shelf and put lightweight paper goods on top. During shaking, do not run over to steady the unit; follow Drop, Cover, and Hold On guidance.

