UnitInRange (the game API function used by oUF's Range element) only works on players in your group. It should work on the target and focus frames when you're targeting a group member, but it won't work on NPCs or players outside your group.
If you want to check ranges on other units, you'll need to use the
oUF Spell Range plugin, and a layout that supports it.