A method, performed by an electronic device, of assisting driving of a vehicle, the method comprising: obtaining first surrounding area information of the vehicle based on the vehicle being located at a first distance from a monitored area disposed ahead of the vehicle; determining a first congestion level of the monitored area by using the first surrounding area information; providing a first control command for controlling the vehicle to operate in a first operating mode among a plurality of operating modes, by using the first surrounding area information, comprising providing the first control command for controlling the vehicle to operate in an autonomous driving mode for driving along one of a first driving route set to enter the monitored area when the first congestion level of the monitored area is less than a critical value or a second driving route set to bypass the monitored area when the first congestion level of the monitored area is equal to or greater than the critical value; obtaining second surrounding area information of the vehicle when the vehicle has driven toward the monitored area and is located at a second distance less than the first distance from the monitored area; determining a second congestion level of the monitored area by using the second surrounding area information; and providing a second control command for controlling the vehicle to operate in a second operating mode among the plurality of operating modes, by using the second surrounding area information, comprising providing the second control command for controlling the vehicle to operate in an autonomous driving mode for one of driving along a first driving route set to enter the monitored area when the second congestion level of the monitored area is less than a first critical value, waiting to enter the monitored area when the second congestion level of the monitored area is equal to or greater than the first critical value and is less than a second critical value, or driving along a second driving route set to bypass the monitored area when the second congestion level of the monitored area is equal to or greater than the second critical value, wherein the second critical value is greater than the first critical value. obtaining first surrounding area information of the vehicle based on the vehicle being located at a first distance from a monitored area disposed ahead of the vehicle; determining a first congestion level of the monitored area by using the first surrounding area information; providing a first control command for controlling the vehicle to operate in a first operating mode among a plurality of operating modes, by using the first surrounding area information, comprising providing the first control command for controlling the vehicle to operate in an autonomous driving mode for driving along one of a first driving route set to enter the monitored area when the first congestion level of the monitored area is less than a critical value or a second driving route set to bypass the monitored area when the first congestion level of the monitored area is equal to or greater than the critical value; obtaining second surrounding area information of the vehicle when the vehicle has driven toward the monitored area and is located at a second distance less than the first distance from the monitored area; determining a second congestion level of the monitored area by using the second surrounding area information; and providing a second control command for controlling the vehicle to operate in a second operating mode among the plurality of operating modes, by using the second surrounding area information, comprising providing the second control command for controlling the vehicle to operate in an autonomous driving mode for one of driving along a first driving route set to enter the monitored area when the second congestion level of the monitored area is less than a first critical value, waiting to enter the monitored area when the second congestion level of the monitored area is equal to or greater than the first critical value and is less than a second critical value, or driving along a second driving route set to bypass the monitored area when the second congestion level of the monitored area is equal to or greater than the second critical value, wherein the second critical value is greater than the first critical value.