The sentence is a piece of advice. The word "wise" here is followed by an infinitive verb that completes the thought of what is wise to do. The context suggests saving or managing money carefully.
Answer: to save