On the limits of real-valued functions in sets involving ψ-density, and applications