Gilbert man thwarts auto theft attempt