Heat would be the main issue, but modern batteries are designed to stop charging if they get too hot. You'll probably be fine if it's not a massively regular thing.
Which variant of the SGS2 do you have? I can move your phone to that particular forum, the users there will be able to tell you for sure.