Black, White, Latino, Indian, Arabic, and even Hmong... If you they are a complete stranger to you, you don't owe them anything. Just know and understand if that same treatment is paid back to you (not insituating that you wouldn't).
I don't condone what you did at all. If anything, that man should have had some decency to wait until the next day when the sun was out to come over and introduce himself. That would have been the more proper and considerate thing to do. Who honestly goes to a strangers house in the middle of night to introduce themself to their new neighbors?
Being cautious can make you seem ignorant and spiteful but being naive can get you killed. Serial killers target their victims! Don't you ever let somebody tell you otherwise.