Original: It behaves as an annual if there is any chance of a frost.
Simplified: It  behaves like an annual if there is any chance of a frost.