You can use Timer behavior - run a timer for 5 seconds, and in your "On Click Object A" event check that the timer is not running.
Or even simpler - save the time object was clicked in a variable LastClick. And allow to click it again if (time-LastClick)>=5