If they're not in boxes yet, they can still change their mind. Just keep talking to them and they should eventually say something like "oh, I'm moving in 3 days and I'm still not packed!" And it should then give you the option to ask them to stay
Usually before they pack up another villager will mention so and so is thinking of moving. Talk to everyone. You have big chance of getting them to stay.