Perhaps a toilet seat lock like this would help? Nothing is fully baby-proof but it might help as a baby-detterant https://www.amazon.com/dp/B07DFWJ9J9/ref=cm_sw_r_cp_apan_i_K1GRZKKW6TVGRK3FQ161