There are several synonyms for the phrase "were wise to someone". If you are cautious or suspicious about someone's intentions, you could say that you were "onto them" or "wary of them". If you had a good understanding of someone's true character, you could say that you "saw through them" or "had their number". Another option is to say that you "had them figured out" or "knew their game". Whatever phrase you choose, the underlying meaning is the same: you had a keen sense of insight and intuition about the person in question, and you acted accordingly to protect yourself.