By Chris Baldwin

Oil fell from a four-month high on Friday to around $51 a barrel, paring the previous session's 7 percent rise, as the dollar edged higher and attention returned to weak demand and high inventories.

The market surged on Thursday to $51.61, the highest settlement since November 28, after the U.S. Federal Reserve announced its plan to fight recession and the dollar fell, boosting the appeal of commodities to investors.

U.S. crude for April, which expires on Friday, fell $1.10 to $50.51 a barrel by 1215 GMT (8:15 a.m. EDT), while the May contract was down 91 cents to $51.13. London Brent crude fell 77 cents to $49.90.

Oil is up 10 percent this week, lifted by a weaker dollar and expectation the Fed's move to buy long-dated treasuries, its first large-scale purchase of government debt since the 1960s, would propel the U.S. economy out of a 14-month recession.

But with crude stockpiles swelling in the United States and energy demand still weak, some analysts cautioned it may be difficult for oil prices to sustain the recent rally.

DEMAND CRUNCH

We may have further to fall. We've got a lot of excess capacity right now and until we increase the spot price, flatten the contango and bring in that floating storage, it's going to be tough, said Simon Wardell, oil analyst at Global Insight.

This isn't like the 1980s. It's not a supply crunch, it's a demand crunch, he said.

Other analysts said there were doubts about how effective the Fed's measures would be.

Oil has had a very good run in the past few sessions and some traders may see that it's a good time to take profit after the surge last night, said Toby Hassall, head of research at Commodities Warrants Australia.

There could also be some uncertainties on the effectiveness of the Fed's plan to revive the economy. It has no doubt given the markets a shot in the arm but there is still unease about the implications of the latest Fed action.

The dollar edged higher on Friday, but was still on track for its biggest weekly drop in 24 years against a basket of currencies as investors feared the Federal Reserve's plans would hit the value of the currency.

In another sign the U.S. economy is still deep in recession, jobs data on Thursday showed a record high in the number drawing state unemployment benefits.

The International Monetary Fund forecast on Thursday the world economy would contract in 2009 for the first time since World War Two by between 0.5 percent and 1.0 percent.

U.S. bank JP Morgan upped its WTI crude oil price forecast for 2009 to an average of $49.38 a barrel, up some $5 from its previous estimate in December, the bank said in a monthly report.

(Additional reporting by Fayen Wong in Perth, editing by Alex Lawler and James Jukwey)