Christ himself says, 'Judge not lest ye be judged', and in another place, 'The same measure by which ye measure shall be measured unto you.'
It's not unreasonable to assume that if you are condemning other people, you are committing a sin, as Christ himself even says that he did not come to condemn anyone, but because they stood condemned already.
So the answer is, if you know their heart and know that they reject God it would be irresponsible for you not to warn them that rejecting God will cause them to be condemned. But given that I myself do not know anyone's heart, hardly even my own, I would say that to do so is at the very least presumptuous for two reasons.
- I do not know that person's heart. I may not even know their words.
- I make the assumption that if they would just hear me and listen and confess, they will be saved. But I don't know the end of that person, what their future choices will be.
But merely proclaiming this - that those who do not confess and believe will be condemned - is no more sinful than declaring that those who fly into the sun will be consumed in plasma fire.
The consideration must be the reason for proclaiming it and to whom it is directed. Rarely do we use such a verse in an objective fashion; it is almost always directed against a particular person or person(s) we know to be unbelievers. This is prideful and dangerous.