Just like how we write security rules before accessing firestore database, can we write security rules before requesting to cloud functions firebase to protect it from abuse and another linked question is does appcheck work work before calling or I have explicitly write context.app.