Lots of Westerners have misconceptions about China in general, and specifically about Beijing. Americans especially are known to think of China as a sort of unstable, militaristic police state. Actually, Beijing is a pretty safe place, and you can enjoy a pleasant and secure time here.
In fact, as a foreigner, you will often be treated with special consideration and a certain amount of leniency. Of course, you have to abide by the law and show respect China¡¯s culture and customs, but don't be afraid of this city. It's a friendly place and Beijing people are cosmopolitan and well aware of the outside world.
Sometimes you may get stared at, but this is usually out of curiosity. Hostility toward foreigners is very rare. Most people are friendly and willing to help you out if they can.