Rising oil prices are putting wind in the sails of oil and gas companies — but only for so long. They are reaching levels now that could start to bite into energy firms’ bottom lines.