five-second rule

noun
  1. 1

    Any rule that allows or prohibits certain behavior for five seconds after some event, especially:

Source: https://en.wiktionary.org/wiki/five-second%20rule