Ever read Job?
Job is not a good example. Job did not even know there was a devil .. Job believed (although wrongly) that everthing came from GOD. If you want to study about "rebuking" scripturally - then stick to Paul's letters to the churches.