To avoid this, place a metal rod or piece of plywood in the track to prevent an intruder forcing the door open and fit mortise bolts
at the top and bottom.
Special catches for cupboards, security mortise bolts
for back doors or simple latches for internal doors, to name but a few.
I would always fit two extra mortise bolts
about a third of the way up from the floor and the same distance down from the top.