Some Bernstein-type rigidity theorems