Further to the above:
James married in 1705, and it's not likely that a man of age 19 (or less) would have married, so he must have been born to a wife earlier than Margaret. Also, James appears to have had a sizeable estate in 1709, when his father was still living, so he had time to have acquired property (or maybe he inherited from the family of his unknown mother).