The simplest way to prevent it is by changing the monetary policy to modify the interest rates. Higher rates decrease the demand and slow down the economic growth, which curbs inflationary rise.