Had to learn the same:not giving smile to people in the street.In my country giving smile doesn't not always mean invitation but kindness;also I know it is not good to start conversation because it can be seen as invitation to something else...life is sometimes gloomy but for our safety we must stay like that.