DHEA is a precursor prohormoen so it shoudl work on a feedback mechanism, so if your testosterone levels are high it probably wont convert so it wont have much effect.
From a health perspective keto diet I think is the best but I think alot of people wont be able to stick to this kind of diet long term but I guess one would have to try to know for sure.