"Terrorism is a real threat. And nobody knows that better than me," Obama told CBS News.
Asked if the Munich attack suggests Republican presidential candidate Donald Trump is correct in his dark outlook, Obama said, "No, it doesn't".
"One of the best ways of preventing it is making sure that we don't divide our own country, that we don't succumb to fear, that we don't sacrifice our values, and that we send a very strong signal to the world and to every American citizen that we're in this together," the US President said.
Earlier in the day, Obama refuted the statistical claims by Trump on the rise in crime in the country, illegal immigration and others.
"We're not going to make good decisions based on fears that don't have a basis in fact," Obama told reporters at a joint news conference with his Mexican counterpart.
"Although it is true that we've seen an uptick in murders and violent crime in some cities this year, the fact of the matter is that the murder rate today, the violence rate today is far lower than it was when Ronald Reagan was president and lower than when I took office," he said.
