Shashi, take a Closer Look at the 'Mating', from the Side View, with the Lid Almost shut. You'll need a Flashlight.
Also, Looking Close at the CLAW on Your Latch, a 'Incline' has Been warn on the Underside, that Biases it to Move Reward, causing the Lid to Release, by Its Own Pressure and Vibration/Movement! A few Minutes with a 'Rat-Tail' File would Correct the Problem
MJ