how to not give in to obsessive or harmful thoughts