Samsung device? Sounds like you went into Download Mode by accident. If you're not downloading anything to your phone, you can take the battery out and you'll be fine.
Or you can just hold the power button down until the phone restarts.
That warning means that you shouldn't turn the phone off (or restart it) while it's downloading the data you're sending it from another device (like your computer).