I think that in order to protect yourself from inflation, you should invest your money in property.
Your sentence is well said, just add “in order”, which means you have an intention of doing something.
In this case it would be an intention of protecting yourself from inflation.