How to prevent running dropAll in the wrong database

What’s the best way to prevent running dropAll in the wrong database.

Is there any precondition that could prevent running dropAll based on some condition (maybe a table name)?