What you describe is called "false awakening", it's sometimes common for lucid dreamers (I've had both lucid dreams and false awakenings before). There are many ways of making sure that you're either on a dream or in reality, they're called "reality checks", and the trick to them is doing them when you wake up (to make sure you didn't false awake) and a few times during the day so it's more likely that you'll do them while dreaming, which will become your dream lucid.
Some reality checks are trying to breathe with you're nose shut, reading words or the time on a watch (you'll have trouble if you're dreaming), jumping (you might not fall back), trying to pass through a wall, trying to count your fingers (you might be unable or have more or less fingers), or simply trying to think what you're doing right now or remembering what you did an hour ago.
If you're having a nightmare you can spin around to change the scenario. If you want to stay asleep and dreaming keep your eyes moving and don't fix your sight for too much time otherwise you'll wake up (try fixing your sight on an object when you want to wake up). Perceptual stimuli will also keep you asleep, for example rubbing your hands.
There's another great film besides inception with lucid dreams and false awakening as main themes, it's called "Waking Life" and it's about a random guy who keeps waking up on another dream (such as you) and he has philosophical discussions with characters in his dream.
Ok, I'm having trouble trying to embed the video, so I'll just leave the youtube link to the trailer below, it would be cool if someone could embed it for me or tell me how to do it.
http://www.youtube.com/watch?v=uk2DeTet98o








