There is no known way to avoid varicose veins because this is due to weakness of the vein wall. It is stated that it is due to reduced collagen within the vein wall which could be genetic.
So there is no way of avoiding varicose veins but they could be delayed by the practice of leg elevation and compression stockings. This has been discussed in ‘cure of varicose veins’.