When can ibuprofen be used without causing harm?

When can ibuprofen be used without causing harm?