Neither the US State Department nor the British Foreign Office has issue travel advice against visiting anywhere in the vicinity of Petra. They currently advise against visiting the border with Syria and Iraq. They also advise avoiding protests and political demonstrations which usually occur in the center of towns.