The root is probably from The Bible which warns against the specific danger of adultery, Proverbs 6:27-29
You're messing with fire means you are playing a dangerous game and you are likely to get burned.
its from Tamil This metaphor dates from Roman times--Livy used it in his history of Rome--and it remains in common use.
Shakespear Play
Does it make sense? Yes, so it's not an idiom. It's a proverb.
confucius...
The correct word is fuel. It would be considered an idiom because you are not actually adding fuel to a fire. The idiom means that you are making a bad situation worse.
what is origin of the idioum race against the clock
This is not an idiom that I have ever heard. Perhaps you mean an arm AND a leg, which is an exaggerated way of saying something is really expensive.
The idiom pain in the neck originated in America. This expression was first heard during the early 1900's and is used to express frustration.
Egypt
This is not an idiom. An idiom is an expression whose meaning cannot be deduced from its elements. To go through fire and water for someone is easily understood to mean to make a special effort and to undergo difficulties for that person's sake.
Ireland