Complementing the answer found on DTRPG: a ranged attack does not count as an action taken before combat. Instead, it starts the encounter.
As for whether enemies are alert or not in the wild, you can refer to the Yes/No Oracle: if they are not alert, you can try to sneak past them using the distance modifiers on the Skill Test.
Thank you for your feedback!