You should read the book "the gift of fear". It talks about paying attention to those nagging thoughts that just don't feel right. It's not ESP or junk like that, it makes a lot of sense. You were displaying your reaction to something you weren't quite comfortable with and you acted appropriately. Good for you.