NEW YORK. John Krasinski wrote, directed and plays a prominent role in the generally wholesome fantasy “IF” (PG, Paramount). Yet, while the good intentions behind his film are evident, it ends up registering as a sweet but flawed piece of entertainment, one that gets in its own way by trying too hard to be liked.