Answer is obvious mate. And it's already in motion. Everyone knows current product management breed is a messed up ...
Would you rather be an Engineer learning how to Product or a Product Manager learning how to Engineer?
Always transition from Engineer to PM, not the other way round.
Why?
Learning the business nuances, business/user first thinking can be learnt easily and applied.
But learning how to implement a logic in code and understanding the dependencies of various systems is not easily learnable. Also involves the crux of different language learning.
pm that knows enigneering
Powerful combo