Like dissolves like. So, for tree sap, you want a pine terpene or an orange terpene. Pine Sol is one, Goof Off is d-limonene (from oranges). Neother will hurt paint and both are relatively safe on your hands. PineSol will rinse with water and the Goof Off you could use some good detergent afterwards. ( I cleaned defense products for 35 years so I know some good cleaning stuff. :).
Tom