Risky times and risky places interact to affect prey behaviour