Previous Question
The phrase "She is the first person to admit a mistake" is correct. The infinitive phrase modifies the noun:
Next Question
The phrase "He is afraid to fail" is correct. The infinitive phrase modifies the adjective: