Hi Martin,
I’m sorry to hear about the issue you’re experiencing. To avoid this problem, the safest approach is to adjust the folder permissions in your system. Alternatively, if you want to "lock" the library from being edited within the Library Browser, you can add the readonly="1"
tag to the header of the corresponding index.xml file in your library.
I hope that helps.
Best regards,