The 'can I get compensation' comment is telling.
As far as what to do about security when the door has no latch etc. many travellers who frequent lower cost hotels and expect this possibility use the simple and inexpensive solution of a rubber door wedge.
Not an issue to carry on a 'what if' basis by any traveller.
https://www.homedepot.ca/en/home/p.1...waAvZgEALw_wcB