Prevent frameskip from exceeding or going below bounds