Sanity and dementia aren’t so much discrete states as poles of a continuum. It seems to me that slightly irrational (perhaps inappropriate is a better word) behavior would tend to make other people avoid you. And as you tend to do less well in social interactions, you would tend to avoid them.